标签:alt style code lld disco range 自动加载 let ima
角色/主机名 |
系统版本 |
CPU |
MEM |
IP |
master |
CentOS 7.7 |
4 |
4 |
192.168.100.80 |
node01 |
CentOS 7.7 |
4 |
4 |
192.168.100.81 |
node02 |
CentOS 7.7 |
4 |
4 |
192.168.100.82 |
Protocol |
Port Range |
Purpose |
TCP |
6443 |
Kubernetes API server |
TCP |
2379-2380 |
etcd server client API |
TCP |
10250 |
Kubelet API |
TCP |
10251 |
kube-scheduler |
TCP |
10252 |
kube-controller-manager |
Protocol |
Port Range |
Purpose |
TCP | 10250 | Kubelet API |
TCP | 30000-32767 | NodePort Services** |
vim /etc/hosts
192.168.100.80 master
192.168.100.81 node01
192.168.100.82 node02
KUBELET_EXTRA_ARGS="--fail-swap-on=false,--cgroup-driver=systemd"
说明:
--fail-swap-on:关闭交换分区,kubernetes不允许开启交换分区
--cgroup-driver:指定Cgroup drivers用谁
说明:
--kubernetes-version:为控制平面选择特定的Kubernetes版本。
--image-repository :指定镜像部署的地址,原地址https://k8s.gcr.io不可用
--pod-network-cidr:pod的网络地址
--service-cidr:server的网络地址
kubeadm join 192.168.100.80:6443 --token oc5h3c.bs1gikpbvgzbc86y \
--discovery-token-ca-cert-hash sha256:e0e176b55cb5fbf1238351e8d009bf8cc1f9a69a283a47c9ec5766564657d6a0
标签:alt style code lld disco range 自动加载 let ima
原文地址:https://www.cnblogs.com/mycloudedu/p/12004056.html