Pods in Kubernetes (K8s) can be deleted by using a simple kubectl delete pod command. If there are multiple Pods in a namespace and you want to delete them all, this also can be done using the appropriate kubectl command. This short post shows how to delete all Pods in a specific namespace using the […]
kubernetes
Kubectl: Port-Forward to Service – Kubernetes
kubectl port-forward is a Kubernetes command that allows to access internal cluster resources from outside the cluster. It tunnels a traffic from a specified port on a localhost to the specified port on the specified Pod. The kubectl port-forward command is useful for troubleshooting issues, setting up services locally without exposing them, and debugging applications […]
Install Kubectx & Kubens on Windows
kubectx and kubens are two command-line tools that can help to manage Kubernetes clusters and namespaces more efficiently. kubectx is used for switching between Kubernetes contexts (clusters) faster, while kubens is used for switching between Kubernetes namespaces more easily. This post shows how to install kubectx and kubens on Windows so they can be used […]
Kubectl Autocomplete in PowerShell
A kubectl autocomplete is a feature that helps to complete kubectl commands or filenames automatically by pressing the ↹ Tab key. This feature can be enabled in Windows PowerShell by invoking a simple kubectl completion powershell command. Though this way it will be enabled temporary for the current session only. To enable the kubectl autocomplete […]
[SOLVED] Node had taints, that the pod didn’t tolerate
Kubernetes (K8s) has a feature, that allows to mark (taint) a Node, so that no Pods can be scheduled on it, unless a Pod explicitly tolerates the taint. If you try to deploy the Pod that doesn’t tolerate any of the K8s Nodes’ taints, you will get an error as follows: 0/5 nodes are available: […]
Kubectl: Connect to Cluster from Windows
A kubectl is the official Kubernetes command-line tool used to connect to and execute commands on Kubernetes clusters. As the kubectl executable can be installed on Windows, it can also be used to connect to the remote Kubernetes clusters from Windows machines. This post shows how to connect to the remote Kubernetes clusters using the […]
Install Kubectl on Windows
A kubectl is the official Kubernetes command-line tool, used to run commands on Kubernetes clusters. As the kubectl is distributed as a standalone binary it can be easily downloaded from official sources and installed on Windows. In this post I will show how to download and install the latest stable version of the kubectl on […]
Kubectl: Force Delete Pod | Deployment | Service
Pods, Deployments, Services and any other Kubernetes (K8s) resources can be deleted simply by using the kubectl delete command. However, you may want to force the deletion, especially if some Pod or Deployment got stuck in a “Terminating” or “Unknown” state. This post shows how to forcefully delete K8s resources using a kubectl command.
Install Kubectl on Ubuntu, CentOS, Amazon Linux
A kubectl is an official Kubernetes command-line tool, used to run commands on Kubernetes clusters. As the kubectl is distributed as a standalone binary it can be easily downloaded from official sources and installed on any Linux system, including Ubuntu. In this post I will show you how to download and install the latest stable […]
Kubectl: Get Logs From All Pods
Pod logs are a vital component of any Kubernetes cluster as they contain a detailed record of activities and events that occur inside containers. During some maintenance or troubleshooting you might want to get logs from all Pods using a kubectl or to watch/follow them in a real-time. This note shows how to get the […]