Member-only story

Understand Kubernetes Object and Create Nginx Deployment

Nidhi
5 min readDec 1, 2020

--

In this blog, we will explore Kubernetes Objects ,learn about how to create a Nginx deployment using yaml file.

We will also learn how to rollback the deployment and how the revision number changed when we do the rollback.

Prerequisite

  1. Kubernetes Cluster should be configured
  2. Kubectl configured

Follow my YouTube video or blog to setup the prerequisite.

Kubernetes Objects

Kubernetes objects are persistent entities in the Kubernetes system. Kubernetes uses these entities to represent the state of your cluster.

A Kubernetes object is a “record of intent” — once you create the object, the Kubernetes system will constantly work to ensure that object exists.

By creating an object, you’re effectively telling the Kubernetes system what you want your cluster’s workload to look like; this is your cluster’s desired state.

Kubernetes object includes two nested object fields that govern the object’s configuration: the object spec and the object status

Deploying workloads using YAML files

--

--

Nidhi
Nidhi

Written by Nidhi

Devops Automation Enginneer

No responses yet