Bird
0
0

You have this ExternalSecret YAML snippet:

medium📝 Troubleshoot Q6 of 15
Kubernetes - Secrets
You have this ExternalSecret YAML snippet:
spec:
  secretStoreRef:
    name: aws-secret-store
  data:
  - key: myapp/api-key
    name: apiKey
The ExternalSecret controller fails to sync. What is the most likely cause?
AThe key 'myapp/api-key' is misspelled in the ExternalSecret
BThe secretStoreRef name 'aws-secret-store' is not defined in the cluster
CThe Kubernetes Secret name is missing in the spec
DThe ExternalSecret resource must include a pod selector
Step-by-Step Solution
Solution:
  1. Step 1: Check secretStoreRef existence

    The secretStoreRef must reference a valid SecretStore or ClusterSecretStore resource in the cluster.
  2. Step 2: Identify common causes of sync failure

    If the referenced store 'aws-secret-store' is missing, the controller cannot fetch secrets, causing failure.
  3. Final Answer:

    The secretStoreRef name 'aws-secret-store' is not defined in the cluster -> Option B
  4. Quick Check:

    Missing secretStoreRef causes sync failure [OK]
Quick Trick: Verify secretStoreRef exists to avoid sync errors [OK]
Common Mistakes:
  • Assuming key misspelling causes sync failure
  • Expecting Kubernetes Secret name is mandatory in spec
  • Thinking pod selector is required

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes