Kubernetes Lab 1 - Pod Creation
Problem
- Write a pod definition named
yoda-service-pod.ymlThen create a pod in the cluster using this definition to make sure it works.
The specificationsof this pod are as follows:
- Use the
bitnami/nginxcontainer image. - The container needs a containerPort of
80. - Set the command to run as
nginx - Pass in the
-g daemon off; -qargs to run nginx in quiet mode. - Create the pod in the
webnamespace.
Verification
When you have completed this lab, use the following commands to validate your solution. The ‘get pods’ command will
kubectl get pods -n web
kubectl describe pod nginx -n web