Working with Kubernetes in enterprise settings
How many Kubernetes clusters do I need? Clusters First, we want to separate the non-production and production environments: Create two Kubernetes clusters for every application or application suite. One for pre-production and one for production.…
Kubernetes Deployment Scaling
Get all deployments Get all pods Scale the deployment Check the result of the scaling with Get the deployment events at the end of the output of To scale down the replicas, execute the scale command again
Kubernetes Services
Kubernetes Services route traffic across a set of pods. The service specifies how deployments (applications) are exposed to each other or the outside world. Service types The service type specifies how the deployment will be exposed ClusterIP The…
Kubernetes volumes
To understand the types of available volumes read the official Kubernetes documentation on Volumes The official documentation on Kubernetes Persistent Volume and Persistent Volume Claim is at Persistent Volumes Migrating to CSI drivers from in-tree…
Resources to learn Kubernetes
This is a great five part blog series on Kubernetes and a post on volumes by Sebastian Caceres. I recommend reading it even before the official Kubernetes tutorial to get a great overview of how Kubernetes really works. How does it work? Kubernetes:…
Kubernetes commands
kubectl get – list resources kubectl describe – show detailed information about a resource kubectl logs – print the logs from a container in a pod kubectl exec – execute a command on a container in a pod List…