「KUBERNETES-ADDONS」- kubeadm:集群部署工具

  CREATED BY JENKINSBOT

集群配置文件(kubeadm-config)

Kubernetes/kubeadm Configuration (v1beta3)

# kubeadm config print init-defaults > kubeadm-config.yaml
...

# kubeadm init --config=kubeadm-config.yaml --upload-certs
...

配置 BASH 补全

# 首先,需要安装 bash-complete 包,因为 kubectl 依赖于它。
apt-get install bash-completion # Debian
yum install bash-completion     # CentOS

# 然后,启用 kubectl 补全
echo "source <($(which kubeadm) completion bash)" >> ~/.bashrc
source ~/.bashrc

参考文献

Kubeadm | Kubernetes