Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: TLS Upstream #11

Open
1 of 2 tasks
STRRL opened this issue Jun 22, 2023 · 7 comments
Open
1 of 2 tasks

Enhancement: TLS Upstream #11

STRRL opened this issue Jun 22, 2023 · 7 comments

Comments

@STRRL
Copy link
Owner

STRRL commented Jun 22, 2023

@yeqown
Copy link

yeqown commented Jun 30, 2023

Does it mean the controller doesn't support the HTTPS scheme yet? If the target pod is running on 443/8443 since it provides HTTPS service.

@STRRL
Copy link
Owner Author

STRRL commented Jun 30, 2023

It could support the HTTPS upstream with trusted certificates now, but it does not support the self-signed certificate or customized CA yet. 🤔

@yeqown
Copy link

yeqown commented Jun 30, 2023

I'm deploying Kubernetes-Dashboard based with https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml

It specified - --auto-generate-certificates which looks like a self-signed certificate, and then it booms! 💥

@STRRL
Copy link
Owner Author

STRRL commented Jun 30, 2023

Yes! That's a self-signed certificate. 🤣

So I think it's kind of a common requirement; I will take a look and release a new version later.

After I completed it, I would ping you here, and then you could take another try. ❤️

@STRRL
Copy link
Owner Author

STRRL commented Jun 30, 2023

Hi @yeqown, v0.0.7 is released, you could upgrade the ingress controller by helm repo update and helm upgrade, then create the ingress with

$ kubectl -n kubernetes-dashboard \
  create ingress dashboard-via-cf-tunnel \
  --rule="<your-domain>/*=kubernetes-dashboard:443"\
  --class cloudflare-tunnel \
  --annotation "cloudflare-tunnel-ingress-controller.strrl.dev/backend-protocol=https" \
  --annotation "cloudflare-tunnel-ingress-controller.strrl.dev/proxy-ssl-verify=off"

@yeqown
Copy link

yeqown commented Jun 30, 2023

so efficient you are

@yeqown
Copy link

yeqown commented Jul 3, 2023

Hi @yeqown, v0.0.7 is released, you could upgrade the ingress controller by helm repo update and helm upgrade, then create the ingress with

$ kubectl -n kubernetes-dashboard \
  create ingress dashboard-via-cf-tunnel \
  --rule="<your-domain>/*=kubernetes-dashboard:443"\
  --class cloudflare-tunnel \
  --annotation "cloudflare-tunnel-ingress-controller.strrl.dev/backend-protocol=https" \
  --annotation "cloudflare-tunnel-ingress-controller.strrl.dev/proxy-ssl-verify=off"

It works in my k8s cluster, and helps a lot🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants