Skip to content

pmessri/kubeadm-scripts

 
 

Repository files navigation

使用kubeadm搭建集群

详细步骤可以参考:使用kubeadm部署生产环境kubernetes集群

git clone https://github.com/huweihuang/kubeadm-scripts.git

1. 创建Master

bash install-master.sh <MasterDomain> <MasterIP> 

2. 生成Token

kubeadm token create --print-join-command
# 输出
kubeadm join xxx:6443 --token <token> --discovery-token-ca-cert-hash sha256:<hash>

3. 添加Master

bash join-master.sh <MasterDomain> <MasterIP> <NodeName> <Token> <Hash>

4. 添加Node

bash install-node.sh <MasterDomain> <MasterIP> <NodeName> <Token> <Hash>

5. 安装flannel,dashboard,metrics-server

cd master/
bash install-flannel.sh
bash install-dashboard.sh
bash install-metrics-server.sh

About

kubeadm的部署脚本

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%