Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Kubernetes resources cheatsheet] A cheatsheet for Kubernetes resource types and their hierarchy #kubernetes #cheatsheet

Resources

Controllers

In Kubernetes, controllers are control loops that watch the state of your cluster, then make or request changes where needed. Each controller tries to move the current cluster state closer to the desired state

Kubernetes provides the following controllers:

Deployment

Provides declarative updates for Pods and ReplicaSets

Hierarchy: Deployment -> ReplicaSet -> Pod -> Containers

ReplicaSet

Maintains a stable set of replica Pods running at any given time

Hierarchy: ReplicaSet -> Pod -> Containers

StatefulSet

Represents a set of pods with consistent identities

Hierarchy: StatefulSet -> Pod -> Containers

DaemonSet

Ensures that all (or some) Nodes run a copy of a Pod

Hierarchy: DaemonSet -> Pod -> Containers

CronJob

Creates Jobs on a repeating schedule

Hierarchy: CronJob -> Job -> Pod -> Containers

Job

Creates one or more Pods and ensures that a specified number of them successfully terminate

Hierarchy: Job -> Pod -> Containers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment