Bird
0
0

Given this Kustomization YAML snippet, what will FluxCD do when it applies this resource?

medium📝 Command Output Q13 of 15
Kubernetes - Advanced Deployment Patterns
Given this Kustomization YAML snippet, what will FluxCD do when it applies this resource?
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: example-app
spec:
  interval: 5m
  path: ./deploy
  prune: true
  sourceRef:
    kind: GitRepository
    name: example-repo
  validation: client
AFluxCD will build a container image every 5 minutes from './deploy' path
BFluxCD will sync manifests from the Git repo path './deploy' every 5 minutes and prune removed resources
CFluxCD will only validate manifests but not apply them
DFluxCD will deploy manifests once and then stop
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the Kustomization spec fields

    The interval field sets sync every 5 minutes; path points to manifests; prune true means remove deleted resources; sourceRef points to GitRepository.
  2. Step 2: Understand FluxCD behavior

    FluxCD will fetch manifests from Git, apply them, and prune removed resources every 5 minutes.
  3. Final Answer:

    FluxCD will sync manifests from the Git repo path './deploy' every 5 minutes and prune removed resources -> Option B
  4. Quick Check:

    Kustomization sync + prune = FluxCD will sync manifests from the Git repo path './deploy' every 5 minutes and prune removed resources [OK]
Quick Trick: Kustomization interval controls sync frequency; prune removes deleted resources [OK]
Common Mistakes:
  • Thinking FluxCD builds container images
  • Assuming validation means no apply
  • Believing sync happens only once

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes