Learn Kubernetes: Creation of a pod running a Nginx server
In this series of stories, you will learn how to use Kubernetes. Today, let’s create a pod running a Nginx server.
Create a Pod resource file nginx-pod.yaml
with the content:
apiVersion: v1
kind: Pod
metadata:
name: nginx-helloworld
spec:
containers:
- name: nginx-helloworld
image: devopstestlab/nginx-helloworld
Launch the pod:
kubectl create -f nginx-pod.yaml
The output is:
pod/nginx-helloworld…