Bird
0
0

You want FluxCD to deploy manifests from two different Git repositories to the same cluster namespace. How should you configure FluxCD?

hard📝 Workflow Q8 of 15
Kubernetes - Advanced Deployment Patterns
You want FluxCD to deploy manifests from two different Git repositories to the same cluster namespace. How should you configure FluxCD?
ADeploy manifests manually; FluxCD cannot handle multiple repos
BCreate one GitRepository resource with both repo URLs separated by commas
CCreate one Kustomization resource referencing both Git repositories in sourceRef
DCreate two GitRepository resources and two Kustomization resources referencing each repo with the same namespace
Step-by-Step Solution
Solution:
  1. Step 1: Understand FluxCD multi-repo support

    FluxCD supports multiple Git repositories by defining separate GitRepository resources for each.
  2. Step 2: Configure Kustomizations

    Each Kustomization references one GitRepository. To deploy from two repos, create two Kustomizations targeting the same namespace.
  3. Final Answer:

    Create two GitRepository and two Kustomization resources for each repo -> Option D
  4. Quick Check:

    Multiple repos = Multiple GitRepository + Kustomization [OK]
Quick Trick: Use separate GitRepository and Kustomization per repo [OK]
Common Mistakes:
  • Trying to list multiple URLs in one GitRepository
  • Referencing multiple repos in one Kustomization sourceRef
  • Assuming FluxCD cannot handle multiple repos

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes