安装的一些过程
Kubernates
Service 服务
一个master一群node
node上有多个pod
Service由多个pod组成
RC replication Controller 控制多个pod
pod由一组相关的镜像组成,提供应用的功能
service由一组相同功能的应用组成,并提供负载平衡
Kubernates集群安装
- 安装 kubeadm kubelet kubectl
1.1 介绍
kubeadm - the command to bootstrap the cluster.
kubelet - the component that runs on all of the machines in your cluster and does things like starting pods and containers.
kubectl - the command line util to talk to your cluster.
1.2 命令
#apt-get update && apt-get install -y apt-transport-https curl
cat </etc/apt/sources.list.d/kubernetes.list
deb http://mirrors.ustc.edu.cn/kubernetes/apt kubernetes-xenial main
EOF
#gpg --keyserver keyserver.ubuntu.com --recv-keys BA07F4FB
#gpg --export --armor BA07F4FB | sudo apt-key add -
#apt-get update
#apt-get install -y kubelet kubeadm kubectl