Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

http://1.116.235.157:1080/install/k8sinit.sh

安装命令

Code Block
yum install -y kubelet-1.23.* kubectl-1.23.* kubeadm-1.23.*
systemctl enable kubelet docker
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc

编辑kubeadm-config.yaml

Code Block
titlekubeadm-config.yaml
apiVersion: kubeadm.k8s.io/v1beta3
kind: ClusterConfiguration
kubernetesVersion: v1.23.17
controlPlaneEndpoint: 10.10.21.100:8443
imageRepository: registry.aliyuncs.com/google_containers
apiServer:
 certSANs:
 - 10.10.21.100
 - 10.10.21.110
 - 10.10.21.111
 - 10.10.21.112
 - 10.10.21.113
 - 10.10.21.114
 - 10.10.21.115
networking:
  podSubnet: 10.244.0.0/16
  serviceSubnet: 10.96.0.0/12

...