cloudflare-operator
cloudflare-operator copied to clipboard
Reach API-Server through cloudflared
Hi, did anyone try to reach api server service with cloudflared?
I tried with added hostnames to https://docs.k3s.io/cli/server#listeners tls-sans, but no luck.
Still getting Unable to connect to the server: x509: certificate signed by unknown authority
What am I missing? Tried with tls and without.
apiVersion: networking.cfargotunnel.com/v1alpha1
kind: TunnelBinding
metadata:
name: cloudflare-tunnel-apiserver
subjects:
- name: kubernetes
spec:
fqdn: kubernetes.example.com
noTlsVerify: true
tunnelRef:
kind: ClusterTunnel
name: k3s-cluster-tunnel
I just spun up a k8s cluster with docker desktop, installed the operator and applied your exact config. It works fine for me. The below reponse is indeed from the K8s API server.