Bird
0
0

Which of the following is the correct ArgoCD CLI command to create an application named myapp syncing from Git repo https://github.com/example/repo.git with path k8s and target cluster https://kubernetes.default.svc?

easy📝 Syntax Q12 of 15
Kubernetes - Advanced Deployment Patterns
Which of the following is the correct ArgoCD CLI command to create an application named myapp syncing from Git repo https://github.com/example/repo.git with path k8s and target cluster https://kubernetes.default.svc?
Aargocd app create myapp --repo https://github.com/example/repo.git --path k8s --dest-server https://kubernetes.default.svc --dest-namespace default
Bargocd create app myapp --repository https://github.com/example/repo.git --directory k8s --cluster https://kubernetes.default.svc
Ckubectl create app myapp --repo https://github.com/example/repo.git --path k8s
Dargocd app new myapp --repo-url https://github.com/example/repo.git --folder k8s --server https://kubernetes.default.svc
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct ArgoCD CLI syntax

    The correct command uses argocd app create with flags --repo, --path, --dest-server, and --dest-namespace.
  2. Step 2: Compare options

    argocd app create myapp --repo https://github.com/example/repo.git --path k8s --dest-server https://kubernetes.default.svc --dest-namespace default matches the official syntax exactly. Others use incorrect commands or flags.
  3. Final Answer:

    argocd app create myapp --repo https://github.com/example/repo.git --path k8s --dest-server https://kubernetes.default.svc --dest-namespace default -> Option A
  4. Quick Check:

    Correct CLI syntax = argocd app create myapp --repo https://github.com/example/repo.git --path k8s --dest-server https://kubernetes.default.svc --dest-namespace default [OK]
Quick Trick: Remember: 'argocd app create' plus repo, path, dest-server flags [OK]
Common Mistakes:
  • Using kubectl instead of argocd CLI
  • Wrong flag names like --repository or --folder
  • Incorrect command order or missing --dest-namespace

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes