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
Author Archives: Laszlo Pinter
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 ClusterIP service is only visible within the cluster. To expose the pod to other services in the …
Resources to learn Docker
Get Started with Docker (great tutorial on the Docker website)
Docker Swarm volumes
Containers are ephemeral. Containers live entirely in memory, so even if the container is set up with automatic restart, the new container will not have access to the data created inside of the old container. To save persistent data of Docker containers we need to create volumes that live outside of the ephemeral containers. Don’t …
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 plugins Kubernetes moves away from in-tree plugins, that had to be checked into the Kubernetes code repository to out-of-tree volume …
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: Episode 1 – Kubernetes general architecture How does it work? Kubernetes: Episode …
Resources to learn Docker Swarm
This is five part blog series, and the post on volumes is great explanation of how Docker Swarm really works by Sebastian Caceres. I recommend it even before doing the official Docker Swarm tutorial, to get a peek under the hood. How does it work? Docker! Part 1: Swarm general architecture How does it work? …
Kubernetes overview
Kubernetes Hierarchy image container pod ( one or more containers that would be deployed together on the same host to share volumes ) deployment service Kubelet Kubelets run on every host to start and stop pods and communicate with the Docker engine on the host level. Kube-proxy Kube-proxies also run on every host to redirect …
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 existing pods Get detailed information on the pods Start a proxy to access the containers within the pod Get the …
warning: Insecure world writable dir … in PATH, mode 040777
When you test your Chef cookbook in Test Kitchen you may get the following warning: warning: Insecure world writable dir MY_DIRECTORY/PATH in PATH, mode 040777 To stop this warning message, execute