Pods

Challenge

Use kubectl to

  • Create a pod using image ‘sirfragalot/docker-demo:dcus’ called lab1
  • Describe the pod
  • Get pod events
  • Access the webpage running on port 8080 in the container
    • using the internal IP
    • using port forwarding
  • Use a filter command to show only this pod

Which node is this pod running on?


Expand here to see the solution

Challenge

Use kubectl to

  • Create a pod called ’nginx’ with the nginx image

Expand here to see the solution

Challenge

Use kubectl to create a new pod with the name redis and with the image redis:1.99.

Identify the problem with the pod.

Rectify the problem with the pod and wait until the pod is ready and healthy.


Expand here to see the solution

Challenge

Use kubectl to

  • Create a pod called my-nginx and expose it on container port 8080.

Expand here to see the solution