Bird
0
0

You want to test your operator locally before deploying. Which command should you run?

hard📝 Workflow Q15 of 15
Kubernetes - Operators and Custom Resources
You want to test your operator locally before deploying. Which command should you run?
Aoperator-sdk deploy cluster
Boperator-sdk up local
Ckubectl apply -f deploy.yaml
Doperator-sdk create api
Step-by-Step Solution
Solution:
  1. Step 1: Identify command for local testing

    The operator-sdk up local command runs the operator locally on your machine for testing.
  2. Step 2: Compare other options

    deploy cluster deploys to cluster, kubectl apply applies manifests, and create api adds resources, none run locally.
  3. Final Answer:

    operator-sdk up local -> Option B
  4. Quick Check:

    Run local command tests operator locally = A [OK]
Quick Trick: Use 'up local' to test operator on your machine [OK]
Common Mistakes:
  • Trying to deploy before local testing
  • Confusing create api with running operator
  • Using kubectl instead of operator-sdk for local run

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes