nerdexam
Linux_Foundation

CKAD · Question #1

Create a pod with the following characteristics, and leave it running when complete: The pod must run in the web namespace. The namespace has already been created The name of the pod should be cache…

student@node-1~$ kubectl run cache --image=lfccncf/redis:3.2 --port=6379 -n web pod/cache created student@node-1~$ kubectl get pods -n web NAME READY STATUS RESTARTS AGE cache 1/1 Running 0 9s

Submitted by salim_om· May 4, 2026Application Deployment

Question

Create a pod with the following characteristics, and leave it running when complete:
  • The pod must run in the web namespace.
  • The namespace has already been created
  • The name of the pod should be cache
  • Use the lfccncf/redis image with the 3.2 tag
  • Expose port 6379

Explanation

student@node-1~$ kubectl run cache --image=lfccncf/redis:3.2 --port=6379 -n web pod/cache created student@node-1~$ kubectl get pods -n web NAME READY STATUS RESTARTS AGE cache 1/1 Running 0 9s

Topics

#Pod creation#Namespaces#Container images#Port configuration

Community Discussion

No community discussion yet for this question.

Full CKAD Practice