Ali Ilman
Ali Ilman

Ali Ilman

What is a Kubernetes Object

What is a Kubernetes Object

A Kubernetes object is something that exists in a Kubernetes cluster. There are config files we can write, and these files are used to create Kubernetes objects.

For most Kubernetes objects we want to make use of, we are required to specify four fields.

  1. apiVersion to specify the API group we're using to create the object
  2. kind to specify the object type of our object
  3. metadata to specify the name (and other data) of our object
  4. spec to specify the specification of our object, which is different for every kind of object

apiVersion goes hand-in-hand with kind. We specify the API group to make use of an object type that exist only within that API group.

Reference

 
Share this