-
Notifications
You must be signed in to change notification settings - Fork 819
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
helm chart: ingress definitions ignored when using TUNNEL_TOKEN #633
Comments
Hi @joaocc , What you explained is done like that by design. Once a Tunnel is created as remotely managed (via the UI), then the tunnel will always pick the configuration that is sent from the edge. If you want to create a tunnel that is locally managed but still run with the token, then you can create the tunnel via the "cloudflared create" command, which will be locally managed, and then you can get the token for that tunnel by running: That said, is there a specific reason for you to prefer your configuration to be locally managed? |
Hi, In our baseline scenario, after setting up the (LoadBalancer + nginx-ingress-controller + cert-man), each "user" only has to add some annotations to the ingress resource, and everything works. The closest we found seems to be adyanth/cloudflare-operator#47 (unofficial) or the apparently abandoned cloudflare/cloudflare-ingress-controller#176. Configuring locally will keep configurations local and version controlled (as when used via fluxcd or argocd) while creating them manually will introduce a manual step and a source of error. Hope this helps. |
For kubernetes envs what we purpose is having cloudflared in front of the ingress controller. (https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/routing-to-tunnel/kubernetes/#deploy-in-front-of-an-ingress-controller) You can then have cloudflared with a single wildcard ingress rule pointing to the ingress controller which is responsible for managing the actual ingresses. |
Hi, |
This behaviour was observed when trying to deploy to kubernetes by using the TUNNEL_TOKEN.
Chart configuration is similar to the "semi-official" one (https://github.com/kit-ar/cloudflare--cloudflare-tunnel--helm/tree/kit-ar/main/helm/cloudflare-tunnel)
The main difference is that instead of authenticating with
credentials.json
(withAccountTag
,TunnelID
,TunnelName
, TunnelSecret) we are usingTUNNEL_TOKEN
env var.In this case, the content of
ingress:
inconfig.yaml
seems to be ignored, andcloudflared
always fetches remotely managed configurations from Cloudflare API.Is there any way to force
cloudflared
to obtain them fromingress:
inconfig.yaml
?Expected behavior
Local configurations overriding remote configurations.
Environment and versions
Logs and errors
The text was updated successfully, but these errors were encountered: