K8s Kubernetes v1.10 Single-node Kubeadm quick Installation
# Master single node Quick install
# fool-only installation for rapid deployment of test environments
#测试环境centos 7.4
#ubuntu环境应该也可以, not tested.
#1 Initializing the Environment
curl -s http://elven.vip/ks/k8s/oneinstall/0.set.sh |bash
#2 Download the image, install the Kubeadm tool
curl http://elven.vip/ks/k8s/oneinstall/1.download.sh |bash
#3 Deploying the K8s Master node
curl -s http://elven.vip/ks/k8s/oneinstall/2.k8s.install.sh |bash
#若安装失败, or reset master, and re-execute section #3
#主要服务
#master节点
- Etcd #数据存储
- Kube-apiserver #api是集群控制的入口
- Kube-controller-manager #资源自动化控制中心
- Kube-scheduler #负责Pod调度
#node
- Kubelet #与master通信, Pod, container management
- Kube-proxy #代理和负载均衡器
#概念
#Pod是k8s调度最小单位, the relevant business containers are running in each pod, and these containers share IP and volume
#K8s中Service相当于微服务, a service corresponds to multiple pod instances, using Labelselector to bundle pods together
#访问服务:->node IP-Cluster IP (Service)-Pod IP
K8s Kubernetes v1.10 Single-node Kubeadm quick Installation