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…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bruno Delb

Bruno Delb

Blockchains, DevOps, Agile Coaching, development, testing, Cloud, Management 3.0, ITIL. It defines me.