Member-only story
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
- Kubernetes Cluster should be configured
- 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