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
name: nginx-helloworld
- name: nginx-helloworld
image: devopstestlab/nginx-helloworld

Launch the pod:

kubectl create -f nginx-pod.yaml

The output is:





The Open DevOps Academy shares practices, experiences, and ideas about many domains of DevOps.

Recommended from Medium

Consideration of Performance in Solution Design

ESP32 Programmers’ Memory Model

Outsystems new Champions program!

10 Software Outsourcing Tips to Enterprises for Maximum Benefits

Software Outsourcing Tips to Enterprises

Overcoming the Accuracy vs Agility Trade-Off in Demand Planning & Forecasting

Code Clean, Happy Team

Factory patterns to hide instantiation

How to develop a website with ruby on rails and react

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.

More from Medium

Learn Kubernetes: ConfigMap — Inject the values of a ConfigMap in a container as a volume

Securing the Kubernetes cluster

Creating a Kubernetes cluster on AWS using kops

Migration to Kubernetes — the process, pitfalls, and success