Create a namespace named dev
.
Deploy a pod named dev-nginx-pod
in the dev
namespace.
Use the nginx
image with the latest
tag for the pod.
Ensure to specify the image tag as nginx:latest
.
First create the namespace named dev.
Manifest with yaml file
:
But I prefer using EOF
Create namespace now:
Create pods now, nginx-pod.yaml
Apply the YAML manifest file.
Now List Namespaces
List Pods in a Namespace
#k8s #kubernetes #pods #namespace #happylearning :)