-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
cloudflared deployment restarts endlessly when using FluxCD #111
Comments
The problem only exists if using Flux CD. apiVersion: networking.cfargotunnel.com/v1alpha1
kind: TunnelBinding
metadata:
name: prerender
subjects:
- name: prerender
tunnelRef:
kind: ClusterTunnel
name: fastcup And subjects:
- kind: Service
name: prerender
spec:
noTlsVerify: false
proxyAddress: 127.0.0.1
proxyPort: 0
proxyType: '' After this, Flux CD reconciles this Custom Resource again. |
Why does |
The controller adds labels and sets the status on the tunnel binding, which is required to track it. I use this with ArgoCD and it does not seem to have problems with diffs, so this seems to be something you could let Flux ignore?
|
@adyanth FluxCD ignores changes in status and labels, but doesn't ignore |
The controller does not explicitly change the values in the spec. I believe those are defaults getting serialized, which might be either a JSON tag I'm missing or I might need to be using pointers for it to be nullable to not be serialized. I am not fully sure since my instance only added the boolean for noTlsVerify and not the rest. |
I had the same issue with ArgoCD and was able to work around it by adding to the Application spec:
|
@benperove you should not need to ignore the whole spec, that is surprising. |
After a couple of changes in
TunnelBinding
, the cloudflared deployment started to restarting endlessly.The text was updated successfully, but these errors were encountered: