Kubernetes concepts
What is a label?
Labels are key/value pairs that are attached to objects, such as pods.
They can be used to organize and to select subsets of objects (via .spec.selector
).
What is an annotation?
It's just metadata attached to objects. You can use Kubernetes annotations to attach arbitrary non-identifying metadata to objects. Clients such as tools and libraries can retrieve this metadata.
Deployment
A deployment is a declarative way to update Pods and ReplicaSets.
Stateful set
Provides and guarantees about ordering and uniqueness of the pods. Used for stateful applications such as dbs.
Deamon set
Runs a pod of the service for each available node.
Replica set
A ReplicaSet's purpose is to maintain a stable set of replica Pods running at any given time. As such, it is often used to guarantee the availability of a specified number of identical Pods.
Service
Abstract way to expose an application running on a set of Pods.