Member-only story
Record your intent with a Kubernetes object
Kubernetes objects are persistent entity 1 on Kubernetes . Kubernetes uses these entities to represent the state of the cluster.
The following contents can be expressed:
- What containerized applications are running (and on which nodes they are running)
- Resources available from those applications
- Policies on how the application behaves, such as restarts, upgrades, fault tolerance policies, etc.
- Once you create an object, Kubernetes always keeps it in existence.
Manipulating Kubernetes objects using the Kubernetes API
When working with Kubernetes objects, you must use the Kubernetes API regardless of whether you create, modify, or delete them.
kubectl command line interface
If you use the kubectl command line interface, this CLI will issue the Kubernetes API instructions needed for processing on your behalf.
You can also use the client library from your program and use the Kubernetes API directly.