Skip to content

Instantly share code, notes, and snippets.

@fardjad
Last active July 1, 2020 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fardjad/ea3c38d566c845e0b353237d3959e365 to your computer and use it in GitHub Desktop.
Save fardjad/ea3c38d566c845e0b353237d3959e365 to your computer and use it in GitHub Desktop.
[Kubernetes resources cheatsheet] A cheatsheet for Kubernetes resource types and their hierarchy #kubernetes #cheatsheet

Resources

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:

Provides declarative updates for Pods and ReplicaSets

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

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

Hierarchy: ReplicaSet -> Pod -> Containers

Represents a set of pods with consistent identities

Hierarchy: StatefulSet -> Pod -> Containers

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

Hierarchy: DaemonSet -> Pod -> Containers

Creates Jobs on a repeating schedule

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

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