kubernetes 阿里云安装(kubeadm方式)
2017-10-18 11:01
453 查看
注意:不能修改hostname
curl -sSL http://aliacs-k8s.oss-cn-hangzhou.aliyuncs.com/installer/kubemgr-1.6.1.sh >kubemgr-aliyun-1.6.1.sh
chmod +x kubemgr-aliyun-1.6.1.sh
master:
export ACCESS_KEY_ID=
export ACCESS_KEY_SECRET=
./kubemgr-aliyun-1.6.1.sh -s nice --node-type master --key-id ${ACCESS_KEY_ID} --key-secret ${ACCESS_KEY_SECRET}
node:
export ACCESS_KEY_ID=
export ACCESS_KEY_SECRET=
./kubemgr-aliyun-1.6.1.sh -s nice --node-type node --key-id ${ACCESS_KEY_ID} --key-secret ${ACCESS_KEY_SECRET} --token 3dc851.9cc9f65cf3191c47 --endpoint kubernetes.default.svc:6443
token 使用master最后打印出的(或者master执行kubeadm token list查看),endpoint使用master的ip
kubeadm join --skip-preflight-checks --token 3dc851.9cc9f65cf3191c47 kubernetes.default.svc:6443
卸载:
kubectl delete -f http://aliacs-k8s.oss-cn-hangzhou.aliyuncs.com/conf/ingress-controller-summary.yml
curl -sSL http://aliacs-k8s.oss-cn-hangzhou.aliyuncs.com/installer/kubemgr-1.6.1.sh \ | bash -s nice --node-type down
环境变量
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /etc/profile
source /etc/profile
Created API client, waiting for the control plane to become ready
unable to connect to Rkt api service: rkt: cannot tcp Dial rkt api servic
修改了实例名字导致的
如果遇到不是同一个node上的pod与pod内无法访问的问题,设置安全组
cni网卡ping不通,注意不能设置外网IP
curl -sSL http://aliacs-k8s.oss-cn-hangzhou.aliyuncs.com/installer/kubemgr-1.6.1.sh >kubemgr-aliyun-1.6.1.sh
chmod +x kubemgr-aliyun-1.6.1.sh
master:
export ACCESS_KEY_ID=
export ACCESS_KEY_SECRET=
./kubemgr-aliyun-1.6.1.sh -s nice --node-type master --key-id ${ACCESS_KEY_ID} --key-secret ${ACCESS_KEY_SECRET}
node:
export ACCESS_KEY_ID=
export ACCESS_KEY_SECRET=
./kubemgr-aliyun-1.6.1.sh -s nice --node-type node --key-id ${ACCESS_KEY_ID} --key-secret ${ACCESS_KEY_SECRET} --token 3dc851.9cc9f65cf3191c47 --endpoint kubernetes.default.svc:6443
token 使用master最后打印出的(或者master执行kubeadm token list查看),endpoint使用master的ip
kubeadm join --skip-preflight-checks --token 3dc851.9cc9f65cf3191c47 kubernetes.default.svc:6443
卸载:
kubectl delete -f http://aliacs-k8s.oss-cn-hangzhou.aliyuncs.com/conf/ingress-controller-summary.yml
curl -sSL http://aliacs-k8s.oss-cn-hangzhou.aliyuncs.com/installer/kubemgr-1.6.1.sh \ | bash -s nice --node-type down
环境变量
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /etc/profile
source /etc/profile
Created API client, waiting for the control plane to become ready
unable to connect to Rkt api service: rkt: cannot tcp Dial rkt api servic
修改了实例名字导致的
如果遇到不是同一个node上的pod与pod内无法访问的问题,设置安全组
cni网卡ping不通,注意不能设置外网IP
相关文章推荐
- CentOS7(mini) 安装 Kubernetes 集群(kubeadm方式)
- CentOS7(mini) 安装 Kubernetes 集群(kubeadm方式)
- 以Kubeadm方式安装的Kubernetes集群的探索
- 通过kubeadm安装kubernetes 1.7文档记录[docker容器方式]
- kubeadm安装kubernetes(calico)
- 利用阿里云的源yum方式安装Mongodb
- CentOS7.3利用kubeadm安装kubernetes1.7.3完整版(官方文档填坑篇)
- Kubeadm安装Kubernetes-1.5.1版本
- 使用kubeadm在ububtu16.04安装kubernetes1.6.1-flannel
- 使用kubeadm安装kubernetes1.7/1.8/1.9
- kubeadm 安装 kubernetes 1.4.6
- 阿里云CentOS系统yum方式安装vsftpd
- CentOS7.3利用kubeadm安装kubernetes1.7.3完整版(官方文档填坑篇)
- 使用kubeadm安装Kubernetes 1.9
- kubernetes集群 yum安装方式
- 使用kubeadm在ububtu16.04安装kubernetes1.5.5-flannel
- 阿里云安装wdcp,支持两种安装方式
- [置顶] kubernetes1.8.4 安装指南 (基于静态Pod方式安装)
- 使用kubeadm安装kubernetes1.12.1