0
0
Kubernetesdevops~10 mins

GitOps with ArgoCD in Kubernetes - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to install ArgoCD in the Kubernetes cluster.

Kubernetes
kubectl create namespace [1]
Drag options to blanks, or click blank then click option'
Akube-system
Bdefault
Cargocd
Dargo
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'default' namespace instead of 'argocd'.
Using 'kube-system' which is reserved for system components.
2fill in blank
medium

Complete the kubectl command to apply the ArgoCD installation manifest from the official URL.

Kubernetes
kubectl apply -n argocd -f [1]
Drag options to blanks, or click blank then click option'
Ahttps://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/delete.yaml
Bhttps://example.com/install.yaml
Chttps://raw.githubusercontent.com/kubernetes/website/main/content/en/examples.yaml
Dhttps://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
Attempts:
3 left
💡 Hint
Common Mistakes
Using a URL that points to unrelated manifests.
Using a URL for deletion instead of installation.
3fill in blank
hard

Fix the error in the command to get the ArgoCD server service details.

Kubernetes
kubectl get svc -n argocd [1]
Drag options to blanks, or click blank then click option'
Aargocd-server
Bargocd-service
Cargo-server
Dserver-argocd
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect service names that do not exist.
Swapping the order of words in the service name.
4fill in blank
hard

Fill both blanks to create an ArgoCD application manifest snippet that syncs from a Git repo.

Kubernetes
"apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: guestbook
spec:
  source:
    repoURL: [1]
    path: guestbook
  destination:
    server: [2]
    namespace: default"
Drag options to blanks, or click blank then click option'
Ahttps://github.com/argoproj/argocd-example-apps.git
Bhttps://github.com/example/repo.git
Chttps://kubernetes.default.svc
Dhttps://example.com/api
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect or non-existent Git repo URLs.
Using external URLs instead of the Kubernetes API server URL.
5fill in blank
hard

Fill both blanks to complete the command to log into ArgoCD CLI with the admin password from the secret.

Kubernetes
argocd login localhost:[1] --username admin --password $(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | [2])
Drag options to blanks, or click blank then click option'
A8080
Bbase64 -d
Cbase64 --decode
D80
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong port numbers like 80.
Using incorrect base64 decoding flags.
Not decoding the password from base64.