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 节点信息
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.查看节点是否正常
kubectl get nodes
5.添加节点
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.查看节点容器
kubectl get po -o wide
9.查看节点
kubectl get nodes
10.查看该组件的pod
kubectl get pod --namespace=kube-system
具体细节:请详见
http://blog.frognew.com/2017/07/kubeadm-install-kubernetes-1.7.html
名称栏目:kubeadm安装1.7版本kubernetes
本文网址:
http://cqcxhl.cn/article/gohpss.html