Pages

Monday, January 10, 2022

Kubernetes - Ephemeral Container : Copy Of Pod By Changing Image

Most of the time, developers deploy their application in small sized images which does not contain any debugging utilities. As a practice, they deploy the code in distroless images. But when that application is misbehaving, kubernetes provides us a way to change that container image to another image which contain debugging utilities.Create...
Read More

Docker - Running Container in privileged mode

With new security restrictions, developers are running their code in a more secured area. They are running their code in containers with less privileges, non root and secure images. But there are times where we need to provide additional privileges to things running inside.Docker provides us with a privileged mode which grants a docker container...
Read More

Kubernetes - Static pods

We know that the pods are created and managed by the Api-server. Though the pods are created in the worker nodes by the kubelet running on those nodes, the details are first managed by the api-server and will ask this kubelet to create the pod. This means the management of this pod will be taken care of by the api-server. These pods are...
Read More

Sunday, January 9, 2022

Kubernetes - Labels, Selector and matchLabels

Labels are a mechanism that we use to organize objects in kubernetes.a K8s object can be anything from containers, pods to services and deployments. Labels are key-value pairs that we can attach to a resource for identification. The labels contain information and are used by kubernetes to query objects based on these labels.A label can be...
Read More

Kubernetes - Ephemeral Container : Copy Of Pod

Sometimes pod configurations do not allow connection for troubleshooting in certain cases. For instance, we can't run the “kubectl exec” command to connect to a container to troubleshoot. For instance, if your container image does not include a shell or if your application crashes on startup. In these situations we can use “kubectl debug”...
Read More

Kubernetes - Ephemeral containers

Pods are fundamental units in kubernetes. All applications that we run inside a container run inside a Pod. Many times developers build containers with small base images, most of the times with distroless images based on slimmed versions of distributions. These images will not have a package manager or shell. Only the application and its...
Read More

Kubernetes - Probes

Multiple parts of an application running in multiple containers are hard to manage. A big reason is that there are many moving parts of that application that all need to work for an application to function. If a small part breaks, the system has to detect, route it and fix it. All this needs to be done automatically.Kubernetes provides us...
Read More

Kubernetes - Restart Pods

There are many times where a developer needs to restart his application. When the application is deployed in a container/pod implementation like in kubernetes, the restart works in a different way. There are multiple ways to restart an application pod.1.Use the deployment rollout restart command as below[jagadishmanchala@Jagadish-theOne:k8s]...
Read More

Kubernetes - Mounting a Host Path On To Pod

We already know kubernetes provides us with multiple ways of saving data on the disk. We have seen volume types using emptyDir and memory. The other and most used volume type is the Hostpath. In this article we will see how we can use a host path on disk to mount on to the pod and save data from the pod to the host machine.The Host path...
Read More