A kubectl exec command serves for executing commands in Docker containers running inside Kubernetes Pods. With this command it is also possible to get an interactive shell to a Docker container running inside a Pod. In this post i will show how to login to a Pod and execute an interactive shell session using the […]
kubernetes
Kubectl: Switch Context – Kubernetes
A Context in Kubernetes is used to group access parameters under convenient names in a kubeconfig file. Each Context has three parameters: Cluster, Namespace and User. In this note i will show how to display and how to change Context in Kubernetes using the kubectl command.
Kubectl: Get Pods – List All Pods – Kubernetes
A Pod is a group of one or more containers with shared storage, network and lifecycle and is the basic deployable unit in Kubernetes. Each Pod is scheduled on the same Node, and remains there until termination or deletion. In case of a Node failure, identical Pods are scheduled on other available Nodes in the […]
Kubectl: Get Current, List All – Namepaces in Kubernetes
Kubernetes supports multiple virtual clusters backed by the same physical cluster. These virtual clusters in Kubernetes are called Namespaces. The Namespaces allow to partition physical resources into the logically named groups, allowing a Kubernetes cluster to share resources between multiple groups. In this note i will show how get the current Namespace and how to […]
Kubectl: Get Nodes – List Nodes – Kubernetes
A Node in Kubernetes is a worker machine (virtual or physical), managed by the control plane. Each Node contains the services necessary to run Pods: docker, kubelet and kube-proxy. This guide describes how list Nodes in Kubernetes and how to get extended information about them using the kubectl command.