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 cluster.

In this note i will show how to list Pods in Kubernetes cluster and how to get detailed information about them using the kubectl command. (more…)

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 list all Namespaces in Kubernetes cluster using the kubectl command. (more…)

Java Version: Get Current JDK/JRE Version – Command

Sometimes it is required to check the current version of Java installed.

By Java version i mean the version of Java Development Kit (JDK) or the version of Java Runtime Environment (JRE).

As JDK and JRE are different components of Java (JDK is used to compile Java programs while JRE is used to run them), there are different commands to check their versions.

This short note explains how to find out the current version of Java (JDK/JRE) from the command line. (more…)

Docker: Login Command – Registry Login & Logout

To start using a private Docker Registry a user usually should run the docker login command and set a username and password that will be cached locally.

If a user tries to docker pull or docker push an image from/to a private Docker Registry, without having run the docker login command in advance, he may receive the “unauthorized: authentication required” error.

This guide explains how to log in and how to log out of a private Docker Registry from the command line using the docker login and docker logout commands. (more…)