0
0
Kubernetesdevops~20 mins

FluxCD for continuous delivery in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
FluxCD Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
FluxCD GitRepository Resource Status Check
You run the command kubectl get gitrepositories.source.toolkit.fluxcd.io after applying a GitRepository manifest. What output indicates the repository is successfully cloned and ready?
Kubernetes
kubectl get gitrepositories.source.toolkit.fluxcd.io
A
NAME          READY   STATUS              REVISION          SUSPENDED
my-repo       True    Fetched revision    main@abcdef1234   False
B
NAME          READY   STATUS              REVISION          SUSPENDED
my-repo       False   Cloning failed      main@abcdef1234   False
C
NAME          READY   STATUS              REVISION          SUSPENDED
my-repo       True    Cloning in progress main@abcdef1234   False
D
NAME          READY   STATUS              REVISION          SUSPENDED
my-repo       False   Repository not found main@abcdef1234  False
Attempts:
2 left
💡 Hint
Look for READY status being True and a positive STATUS message.
🔀 Workflow
intermediate
2:00remaining
FluxCD Automated Deployment Workflow
Which step correctly describes the order of actions FluxCD performs to deploy an application from a Git repository?
A1,2,3,4
B2,1,3,4
C3,1,2,4
D1,3,2,4
Attempts:
2 left
💡 Hint
Think about fetching code before applying it.
Troubleshoot
advanced
2:00remaining
Diagnosing FluxCD Kustomization Sync Failure
You see the Kustomization resource stuck with Ready: False and status message Reconciliation failed: unable to apply manifests. Which command helps you find detailed error logs for this Kustomization?
Akubectl logs -n flux-system deployment/flux-controller
Bkubectl describe kustomization -n flux-system my-kustomization
Ckubectl logs -n flux-system kustomization/my-kustomization
Dkubectl get events -n flux-system --field-selector involvedObject.name=my-kustomization
Attempts:
2 left
💡 Hint
Look for detailed status and error messages in resource description.
🧠 Conceptual
advanced
2:00remaining
Understanding FluxCD Reconciliation Interval
What is the effect of setting a very short reconciliation interval (e.g., 5 seconds) on a FluxCD Kustomization resource?
AFluxCD will ignore changes and only reconcile once at startup.
BFluxCD will batch changes and apply them once every hour regardless of interval.
CFluxCD will frequently check and apply changes, increasing cluster load and API server requests.
DFluxCD disables reconciliation and requires manual sync commands.
Attempts:
2 left
💡 Hint
Think about how often FluxCD polls the Git repository and applies manifests.
Best Practice
expert
2:00remaining
Secure Git Access in FluxCD
Which method is the most secure and recommended way to provide FluxCD access to a private Git repository?
AAllow anonymous read access to the Git repository to avoid credentials.
BStore Git username and password in plain text in the Kustomization manifest.
CEmbed personal access tokens directly in the Git URL in the manifest.
DUse SSH deploy keys stored as Kubernetes secrets referenced by FluxCD GitRepository resource.
Attempts:
2 left
💡 Hint
Consider security best practices for credentials in Kubernetes.