0
0
Kubernetesdevops~10 mins

kubectl describe for details in Kubernetes - Interactive Code Practice

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

Complete the code to show detailed information about a pod named 'my-pod'.

Kubernetes
kubectl [1] pod my-pod
Drag options to blanks, or click blank then click option'
Adescribe
Bget
Clist
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'get' instead of 'describe' only shows summary info.
Using 'list' is for multiple resources, not details.
Using 'delete' removes the resource.
2fill in blank
medium

Complete the code to describe a service named 'web-service' in the 'production' namespace.

Kubernetes
kubectl describe service web-service -n [1]
Drag options to blanks, or click blank then click option'
Adefault
Bproduction
Ckube-system
Ddevelopment
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong namespace will cause an error or no output.
Omitting the namespace flag defaults to 'default' namespace.
3fill in blank
hard

Fix the error in the command to describe a deployment named 'frontend'.

Kubernetes
kubectl [1] deployment frontend
Drag options to blanks, or click blank then click option'
Ainfo
Bdesc
Cshow
Ddescribe
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'desc' or 'show' causes 'unknown command' errors.
Using 'info' is not a valid kubectl command.
4fill in blank
hard

Fill both blanks to describe a pod named 'api-pod' in the 'default' namespace.

Kubernetes
kubectl [1] pod api-pod -n [2]
Drag options to blanks, or click blank then click option'
Adescribe
Bproduction
Cwide
Ddefault
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong namespace causes no output.
5fill in blank
hard

Fill all three blanks to describe a node named 'node-1' with label selector 'env=prod' and output in YAML format.

Kubernetes
kubectl [1] node node-1 -l [2] -o [3]
Drag options to blanks, or click blank then click option'
Adescribe
Benv=prod
Cyaml
Djson
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'get' instead of 'describe' changes output style.
Wrong label selector filters nothing.
Wrong output format shows different data.