0
0
Kubernetesdevops~10 mins

Creating Pods with kubectl in Kubernetes - Interactive Practice

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

Complete the command to create a pod named 'my-pod' using kubectl.

Kubernetes
kubectl run [1] --image=nginx --restart=Never
Drag options to blanks, or click blank then click option'
Acreate
Bmy-pod
Cpod
Drun
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pod' instead of the pod name.
Using 'create' as the pod name.
Using 'run' which is a different command.
2fill in blank
medium

Complete the command to create a pod named 'web-server' with image 'nginx'.

Kubernetes
kubectl [1] web-server --image=nginx --restart=Never
Drag options to blanks, or click blank then click option'
Arun
Bcreate
Capply
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' which doesn't support --image flag directly.
Using 'apply' which is for configuration files.
Using 'delete' which removes resources.
3fill in blank
hard

Fix the error in the command to create a pod named 'db-pod' with image 'mysql'.

Kubernetes
kubectl run db-pod --image=[1] --restart=Never
Drag options to blanks, or click blank then click option'
Amysql-image
Bmysql:latest
Cmysql-server
Dmysql
Attempts:
3 left
💡 Hint
Common Mistakes
Adding ':latest' which might not be recognized.
Using incorrect image names like 'mysql-server' or 'mysql-image'.
4fill in blank
hard

Fill both blanks to create a pod named 'cache-pod' with image 'redis'.

Kubernetes
kubectl [1] [2] --image=redis --restart=Never
Drag options to blanks, or click blank then click option'
Arun
Bcreate
Ccache-pod
Dpod
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' instead of 'run' for this command.
Using 'pod' instead of the pod name.
5fill in blank
hard

Fill all three blanks to create a pod named 'api-pod' with image 'python:3.9' and restart policy 'Never'.

Kubernetes
kubectl [1] [2] --image=[3] --restart=Never
Drag options to blanks, or click blank then click option'
Arun
Bapi-pod
Cpython:3.9
Dcreate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' instead of 'run'.
Using wrong image names or missing the restart policy.