Cloud native represents a paradigm shift in the way infrastructure is deployed. If you are new to cloud native and Kubernetes, there are 22 essential Kubernetes concepts you’ll need to wrap your head around.
Node - A node may be a virtual or physical machine, depending on the cluster. Each node contains the services necessary to run Pods, managed by the control plane.
Cluster - A cluster is the foundation. All your containerized applications run on top of a cluster.
Pod - the basic unit of work. Pods are the smallest deployable units of computing that can be created and managed in Kubernetes. Pods are almost never created on their own, instead pod controllers do all the real work.
Namespace - Kubernetes supports multiple virtual clusters backed by the same physical cluster. These virtual clusters are called namespaces. Namespaces are intended for use in environments with many users spread across multiple teams, or projects.
Deployment - Most common way to get your app on Kubernetes. Creates a ReplicaSet for each Deployment spec.
ReplicaSet - Creates a stable set of pods. You will almost never create this directly.
DaemonSet - A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created. Common for system process like CNI, Monitor agents, proxies, etc.
StatefulSet - StatefulSet is the workload API object used to manage stateful applications with persistent storage. Pod names are persistent and are retained when rescheduled (app-0, app-1). Pods have DNS names, unlike deployments. Storage stays associated with replacement pods. Volumes persist when pods are deleted. Pods are deployed/updated individually and in order.
HorizontalPodAutoscaler - The Horizontal Pod Autoscaler automatically scales the number of pods in a replication controller, deployment, replica set or stateful set based on standard metrics like CPU utilization or custom metrics like request latency.
PodDisruptionBudget - the ability to limit the number of Pods that are disrupted during upgrades and other planned events, allowing for higher availability while permitting the cluster administrator to manage the clusters nodes.
Job - A Job creates one or more Pods and expects them to successfully terminate.
CronJob - create Jobs on a schedule.
ConfigMaps - an API object used to store non-confidential data in key-value pairs.
Secrets - let you store and manage sensitive information, such as passwords, OAuth tokens, and ssh keys.
Ingress - An API object that manages external access to the services in a cluster, typically HTTP. Ingress may provide load balancing, SSL termination and name-based virtual hosting.
Service - an abstract way to expose an application running on a set of Pods as a network service.
Network Policy - a specification of how groups of pods are allowed to communicate with each other and other network endpoints.
Security - RBAC
ServiceAccount - provides an identity for processes that run in a Pod.
Role - a Role is a set of permissions within a particular namespace; when you create a Role, you have to specify the namespace it belongs in.
ClusterRole - ClusterRole is exactly the same as a Role except it is a non-namespaced resource. The resources have different names (Role and ClusterRole) because a Kubernetes object always has to be either namespaced or not namespaced; it can't be both.
RoleBinding - grants the permissions defined in a Role to some group of Users or ServiceAccounts. It holds a list of subjects (Users, Groups, or ServiceAccounts), and a reference to the Role being granted. A RoleBinding grants permissions within a specific namespace.
ClusterRoleBinding - grants that access cluster-wide.