1.安裝需要的google 類包
2.添加跨域名host
61.91.161.217 gcr.io
61.91.161.217 www.gcr.io
61.91.161.217 packages.cloud.google.com
3.使用kuberadm初始化master 節(jié)點信息
kubeadm init --kubernetemkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
s-version=v1.7.3 --pod-network-cidr=10.199.0.0/16 --apiserver-advertise-address=10.204.****
4.查看節(jié)點是否正常
kubectl get nodes
5.添加節(jié)點
kubeadm join --token 472def.6bbb304791b76492 10.204.*** :**
6.查看存在問題
journalctl -ex
journalctl -xeu kubelet
7.啟動一個簡單容器
kubectl create -f https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master/docs/concepts/workloads/controllers/nginx-deployment.yaml
8.查看節(jié)點容器
kubectl get po -o wide
9.查看節(jié)點
kubectl get nodes
10.查看該組件的pod
kubectl get pod --namespace=kube-system
具體細(xì)節(jié):請詳見
http://blog.frognew.com/2017/07/kubeadm-install-kubernetes-1.7.html
文章題目:kubeadm安裝1.7版本kubernetes
標(biāo)題路徑:
http://weahome.cn/article/gohpss.html