Kubernetes is the open-source, cleaned-up release of Borg with many added features.

Kubernetes is deep conceptually, difficult to understand, and still growing in scope. Kubernetes is the nth generation of a distributed operating system.

I use a different approach to understanding and immediately using Kubernetes by NOT discussing many of the Kubernetes internal components and architecture.

However, I detail Kubernetes concepts with Minkube code examples and references so that:

  • We are effective immediately in the use of and rollout of a Kubernetes project.
  • You can go deeper, if you want, into a Kubernetes concept.

Note: Minikube is a Kubernetes clone that operates on your local machine. My group uses it for training and testing Kubernetes configurations. You need to install Docker and kubectl, to use Minikube.

5. Kubernetes is two-dimensional.

The Kubernetes baseline concept exists along two dimensions of abstraction. The first dimension is nodes — computing resources. The second dimension is container images — applications.

Kubernetes is cloud independent by:

  1. Transforming physical machine engines into virtual machines. Then mapping a virtual machine to the Kubernetes abstraction node.
  2. Transforming an application into a set of virtual applications by placing them into container images. The containers are mapped to the Kubernetes abstraction pods.

Kubernetes orchestrates the pods, starting up and initializing pods on the nodes, restarting pods on different nodes if they become unreachable (fault-tolerance, replicating (scaling) pods, and performing other distributed operating system actions on the pods.

Install kubectl

I refer to kubectl often throughout this blog article.

kubectl is your local command-line interface (CLI) for exchanging declarative or imperative directives with a single Kubernetes cluster. The Kubernetes cluster is on your local sandbox; we use Minikube or remotely by the network.

The following blog article goes into more detail about how you set and change which Kubernetes cluster kubectl is directed on Minikube.

You need to install kubectl, before you invoke the magical Kubernetes control command.

You check your install on your local sandbox with:

You get the above error, the last line of output, because kubectl outputs version information and also tries to connect to a Kubernetes cluster.

The following kubectl command shows which cluster (kubectl context):

Continue reading: https://towardsdatascience.com/the-first-nine-primary-concepts-and-code-examples-for-using-kubernetes-productively-d2aabccc0380?source=rss—-7f60cf5620c9—4

Source: towardsdatascience.com