Skip to content

How can I automatically temporarily disable synchronization for Terraform deployments managed by Flux (ToFu controller)? #5129

Answered by matheuscscp
Govind10g asked this question in General
Discussion options

You must be logged in to vote

See docs:

https://fluxcd.io/flux/cmd/flux_suspend/

https://fluxcd.io/flux/cmd/flux_resume/

There's one flux suspend and flux resume command for each Flux API.

In the k8s CronJob you need to use a k8s ServiceAccount that has the required permissions for manipulating the involved Flux objects.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Govind10g
Comment options

@matheuscscp
Comment options

Answer selected by matheuscscp
@matheuscscp
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants