This is a creation in Article, where the information may have evolved or changed.
First see the latest Kubernetes 1.4.0 released. Excited, began to study.
The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/52685592 not allowed to reprint without the Bo master.
Bo main address is: Http://blog.csdn.net/freewebsys
1, about k8s
Kubernetes is an open source container cluster Management system from the Google cloud platform. A scheduling service that builds a container based on Docker. The system can automatically select a working container for use in a container cluster. Its core concept is the Container Pod.
Project Address:
http://kubernetes.io/
2, installation 1.4
http://kubernetes.io/docs/getting-started-guides/kubeadm/
It's super easy.
First, a CENTOS7 operating system is required.
Then modify the repo configuration:
sudo vi/etc/yum.repos.d/k8s.repo
[kubelet]name=kubeletbaseurl=http://files.rm-rf.ca/rpms/kubelet/enabled=1gpgcheck=0
Then execute the install command:
# yum install -y docker etcd kubelet kubeadm kubectl kubernetes-cni# # systemctl enable docker && systemctl start docker# systemctl enable kubelet && systemctl start kubelet# systemctl enable etcd && systemctl start etcd
The installation was successful and started successfully.
Special attention
Need to put Setenforce 0, the security is disabled, otherwise it will cause a bug.
https://github.com/kubernetes/kubernetes/issues/33544
fortheto become ready
Will always stay on this command line.
3, Initialize Master
http://kubernetes.io/docs/getting-started-guides/kubeadm/
--use-kubernetes-version v1.4.0
Due to network problems, you need to configure under hosts, under reference.
Http://ping.chinaz.com/gcr.io
74.125.199.82 gcr.io
Then you can download the image, this gcr.io is Google's server, not explained.
Discover Docker PS After starting the server:
Started a whole bunch of k8s services.
This time indicates k8s can, and then register the service.
Just wait a few minutes and start.
This time look at the service:
To view the images that have been downloaded:
Check Port:
If both start successfully, many services will open:
4, register a node
join89fcb2.961410.0.2.15
After successful execution, a command is automatically generated to increase the node.
But not on the same machine. Otherwise the error will be:
tocreate"/etc/kubernetes/kubelet.conf"it already exists [openfile exists]
It would be nice to change a machine.
This time the server has been successfully started. You can use the admin.
4, using the Web UI
Reference: http://kubernetes.io/docs/user-guide/ui/
Install WebUI:
https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml
Created successfully.
But there is no:
"message""no endpoints available for service \"kubernetes-dashboard\"",
Let's study it again next time.
5, delete kubernetes
Because it's a Docker installation, it's removed from Docker when it's removed.
Method:
Systemctl Stop Kubeletdocker RM- F$ (Docker PS- Q); Mount|Grep"/var/lib/kubelet/*" |Awk' {print $} ' |Xargs Umount1>/dev/NULL 2>/dev/NULLRm-RF/var/lib/kubelet/etc/kubernetes/var/lib/etcd/etc/cniipLink SetCbr0 DownipLinkDel Cbr0ipLink SetCni0 DownipLinkDel cni0systemctl start Kubeletreboot
Finally, under reboot, discover the Dokcer service missing point file.
4, summary
The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/52685592 not allowed to reprint without the Bo master.
Bo main address is: Http://blog.csdn.net/freewebsys
It's very simple to see the official documents of Kubernetes.
But the operation of their own time still need to toss down.
Kubernetes is still a great project, but Adminui is still not up.
Why not know why, next time study.