Quantcast
Channel: kubernetes – All About Tech
Browsing latest articles
Browse All 10 View Live

Kubernetes Cheat Sheet – Important kubectl commands

There are so many frameworks for managing Kubernetes Cluster easily. But still majority of the engineers interact with Kubernetes using the command line client – kubectl. I am listing a set of useful...

View Article


Image may be NSFW.
Clik here to view.

How to configure Kubernetes port forward bind to 0.0.0.0 instead of default...

Kubernetes provides us a feature to port forward an application which is running in the internal network through the Kubernetes client host. By default it binds to the 127.0.0.1 and it won’t accept...

View Article


Image may be NSFW.
Clik here to view.

How to connect to multiple Kubernetes clusters using kubectl ?

In real life projects, we work with multiple Kubernetes clusters. Lets say Dev, QA and Prod cluster. Configuring kubectl and connecting it every time with several commands and config files will be...

View Article

Difference between kubectl create and kubectl apply commands ?

While dealing with Kubernetes client kubectl, we may get confused with a set of questions like. What is the need of these command options if they do similar operations ? Is there any specific use-case...

View Article

Image may be NSFW.
Clik here to view.

How to renew the certificates in a Kubernetes Cluster ?

Kubernetes cluster internally uses a set of certificates for secure communication. Every certificate has an expiry date and it need to be renewed periodically. The Kubernetes will take care of the...

View Article


Image may be NSFW.
Clik here to view.

kubeadm certs – unknown command “certs” for “kubeadm”

Recently in one of the Kubernetes clusters, I have executed the below command to check the expiry date of the internal certificates. kubeadm certs check-expiration On executing the above command, I...

View Article

Image may be NSFW.
Clik here to view.

kubectl error: You must be logged in to the server (Unauthorized) – how to fix

This error occurs when the kubectl client does not have the correct certificates to interact with the Kubernetes API Server. Every certificate has an expiry date. Kubernetes has mechanisms to update...

View Article

How to delete a kubernetes pod which is stuck in terminating state ?

Sometimes a Kubernetes pod may get stuck in the terminating state after issuing the delete command. To resolve this issue, we can forcefully delete the pod. The command is given below. kubectl delete...

View Article


Image may be NSFW.
Clik here to view.

How to manually delete a Kubernetes namespace stuck in terminating state ?

Sometimes, after issuing the command to delete the namespace, namespace will remain in Terminating state without getting deleted. It happened to be several times. To delete the namespace stuck in...

View Article


Malicious Docker Images – New Attack – Best practices to Follow

Recently I have encountered a cyber attack in one of the projects. This attack is mostly happening in container based environments. A Malicious container gets deployed in the docker environment that...

View Article
Browsing latest articles
Browse All 10 View Live