Select K8S [Posts] container cloud automated installation of

Select K8s container installation of automated cloud

Currently kubernetes has grown to 1.5 era, but before that to learn and use kubernetes still quite a few detours, the first problem is to install, you might say installation is very simple. Shining the official website or online copy can be installed on a ......

And we use kubernetes is 1.1 and the 1.2 version of the time, that time is the most authoritative document should document ...... kubernetes.io official website, however when we issue search will appear in the official website (this picture Source network)

This picture has been very clear to explain the problem ...... a series of questions in the course of the installation after due process problems caused by ......

With the development of kubernetes (now reach 1.5 beta version), and compared to the previous official documents have also been more perfect. There has also been a variety of methods to install kuberntets in such a variety of installation methods How do we choose?

Today, I will introduce five kinds of installation methods

minikube

minikube kubernetes member provided by a single cluster on CoreOS. minikube command can be run on windows / linux / macos and other platforms, use minikube build local cluster is very convenient, while providing the full functionality minikube kubernetes cluster. For minikube acquaintance who is a good way to install and get started very quickly. But the problem is when minikube installation requires an Internet connection, and the network needs to be good enough ...... The reason is simple.

This is the official website to start using minikube kubernetes cluster. Interested parties can view information about minikube the github.

kubeadm

kubeadm can run on physical machines, virtual machines and cloud host, and can be used with or puppet chef can complete the automated deployment installation. kubeadm and minikube as your network better, the reason is simple ......

kubeadm is kubernetes introduced in version 1.4 is installed kubernetes cluster. Is still in alpha, is not recommended for use in a production environment. It will be tested when installed on a system can not connect to centos yum source kubeadm need. Even according to the official website to configure the source lines also appeared unable to download the sources, the three parties finally found the source in order to successfully complete the installation. The optional configuration parameters during installation so little basic needs of their own in the course of modification.

Figure yum source added that the official explanation, ubuntu not tested.

hyperkube image

hyperkube images by Google launched the kubernetes each component runs in a container ways. Containers can (docker / rkt etc.). Use hyperkube images need to configure kubelet components in advance. Kubenetes eventually deploy each component by kubelet. The advantage of this installation method is that: as long as the system can run the container, can be run through the assembly kubernetes hyperkube images.

Deployed by hyperkube images kubernetes components, first of all your network better, the reason is very simple ...... or you ready ahead hyperkube images locally.

We said before use hyperkube images need kubelet components. Kubelet components can be run in two ways: docker and systemd.

By setting the -config directory kubelet. kubelet automatically run components in this catalog added. It should be noted here that, in kubernetes V1.3 version, you need to create a namespace kube-system V1.4 version of the manual and requires no configuration.

docker

docker images provided docker images in a release by the kubernetes, and run by docker images kubernetes components. Desired image package in kubernetes-server-linux-amd64.tar.gz inside.

systemd

The fifth method is achieved by SystemD, this is our method of production and test environment used in.

Like it or not, systemd is here to stay.

After reading the figure maybe I'll understand systemd important in the system to do with.

Prior to this, we use a container you'll find in Linux, the kernel can not pick, can not load the kernel module, you can not mount the file system, kernel parameters can not be adjusted, can not change network configuration. If you use a docker run -privileged when you run the container that I can only say I wish you good luck.

If the container is through cgroups out of the heap, then there is a problem of isolation of the container itself / sys / dev and / proc.

So through systemd + selinux to manage, but kubernetes just call systemd complete management for container.

So I based systemdd in from the environment to write scripts to install kubernetes each component.

The main installation script to complete the installation and configuration of the map.

to sum up

Personal use systemd recommended way to travel kubenetes the components. If you can, you can use rkt + systemd.

Where there may be errors in the text welcome to correct me. I hope everyone detours during installation kubernetes. Thank you!

Cloud computing element P zone:  http://primeton.csdn.net/m/zone/primeton/index#

Pu Yuan public number:

Guess you like

Origin www.cnblogs.com/jinanxiaolaohu/p/11349699.html