This cheat sheet focuses on the most important CLI commands for Kubectl, helm and minikube CLIs. But what are the differences between them you ask? kubectl: The most important CLI to learn. It is used to manage a Kubernetes cluster helm: Package manager for Kubernetes.
What is Kubernetes? Kubernetes is an open source platform for running cloud native apps Its a layer over Vms and provide a rich set of APIs for running cloud native apps What are cloud native apps?
Kubernetes is a container orchestration platform. It is used to help containers in a cluster communicate between them in an easy way. This is where networking in Kubernetes kicks in. To understand how Kubernetes works, knowing its basic underlying networking concepts is a fundamental necessity.
Pods in Kubernetes are volatile. That means if a pod crashes or restarts then the data stored previously is lost. Volumes in Kubernetes decouple storage from pods and provides a method for persisting data. For persistent storage in Kubernetes, we need to know 3 things.
A typical Kubernetes workflow follows the following steps- Write code Containerize app Send to container registry Deploy to Kubernetes graph TD A[Write Code] --> B B[Containerzie app] --> C C[Send to container registry] --> D[Deploy to Kubernetes] 1.
In the previous blog post we deployed an nginx container with 3 replicas. Replicas allows us to upscale an application and increase its availability and performance. However, we generally want the replica count of a pod to be dynamic.