Abstract:

Google is said to have more than 2 billion containers running in its data centers, and Google started using container technology a decade ago.

Initially, Google developed a system called Borg (now Omega) to schedule such a large number of containers and workloads. After so many years of experience, Google decided to rewrite the container management system and contribute it to the open source community for the benefit of the world.

That project is Kubernetes. In a nutshell, Kubernetes is the open source version of Google Omega.

Since its first release in 2014, Kubernetes has quickly gained popularity in the open source community, with many influential companies including Red Hat, VMware and Canonical joining the development and promotion camp. Kubernetes has become the fastest growing container orchestration engine with the highest market share.

Kubernetes has been developing and iterating rapidly. In this chapter we will study Kubernetes based on V1.7 and V1.8. We will discuss the important concepts and architectures of Kubernetes and learn how Kubernetes organizes containers, including optimizing resource utilization, high availability, rolling updates, network plug-ins, service discovery, monitoring, data management, log management, and more.

Let’s begin the Kubernetes adventure.

First run

In accordance with the consistent learning ideas, we will set up a usable system in the shortest time, so that we can establish the perceptual understanding of the learning object as soon as possible. Play with it first to quickly understand the basic concepts, features and usage scenarios.

The higher the threshold of knowledge, the greater the need to have such a minimum usable system. If you learn theoretical knowledge and concepts directly, it is easy to give up from the entry.

Of course, it’s not always easy to set up such a working system, but fortunately, Kubernetes has a minimal working system ready to go.

Kubernetes. IO developed an interactive tutorial, through the Web browser can use a pre-deployed kubernetes cluster, quickly experience the functions and application scenarios of Kubernetes, below I take you to play.

Open the kubernetes. IO/docs/tutori…

On the left you can see the tutorial menu:

This tutorial guides you through the most common usage scenarios such as creating a Kubernetes cluster, deploying the application, accessing the application, extending the application, and updating the application.

Create a Kubernetes cluster

1. Create a Cluster -> Interactive tutorial-creating a Cluster

The operation page is displayed.

The left part is operation instructions, and the right part is Terminal, command Terminal window.

Following instructions, we execute minikube start in Terminal and kubectl get Nodes to create a single-node Kubernetes cluster.

The only node in the cluster is Host01. Note that the current command is not run on Host01. We are remotely managing the cluster using kubectl, the command line tool of Kubernetes.

Kubectl cluster-info kubectl cluster-info

Heapster and Kubernetes-Dashboard are services that run in clusters.

Note: In order to save space, I will simplify the operation steps in the following demonstration. Please refer to the online documentation on the official website for detailed instructions and complete steps.

Now that the cluster is created, in the next section I’ll give you a quick tour of the core features of Kubernetes.

Books:

1. Docker Container Technology in 5 minutes a day item.jd.com/16936307278… 2. Play OpenStack in 5 Minutes every day item.jd.com/12086376.ht…

Copyright Notice: The content of this article is contributed by Internet users, copyright belongs to the author, the community does not have the ownership, also do not assume the relevant legal responsibility. If you find any content suspected of plagiarism in our community, you are welcome to send an email to [email protected] to report and provide relevant evidence. Once verified, our community will immediately delete the content suspected of infringement.

Use the cloud habitat community APP, comfortable ~

The original link