File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -920,23 +920,25 @@ scp -r /etc/yum.repos.d/kubernetes.repo root@k8s-node-2:/etc/yum.repos.d/
920
920
所有机子
921
921
yum install -y kubelet-1.13.2 kubeadm-1.13.2 kubectl-1.13.2 --disableexcludes=kubernetes
922
922
923
-
923
+ 所有机子
924
924
vim /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
925
925
最后一行添加:Environment="KUBELET_CGROUP_ARGS=--cgroup-driver=cgroupfs"
926
926
927
-
927
+ 所有机子
928
928
systemctl enable kubelet && systemctl start kubelet
929
929
930
930
kubeadm version
931
931
kubectl version
932
932
933
-
933
+ 必须配置:
934
934
vim /etc/sysctl.d/k8s.conf
935
935
net.bridge.bridge-nf-call-ip6tables = 1
936
936
net.bridge.bridge-nf-call-iptables = 1
937
937
net.ipv4.ip_forward=1
938
+ vm.swappiness=0
938
939
939
- sysctl --system
940
+ modprobe br_netfilter
941
+ sysctl -p /etc/sysctl.d/k8s.conf
940
942
941
943
```
942
944
@@ -973,7 +975,7 @@ Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
973
975
You can now join any number of machines by running the following on each node
974
976
as root:
975
977
976
- kubeadm join 192.168.0.127:6443 --token r7qkjb.2g1zikg6yvrmwlp6 --discovery-token-ca-cert-hash sha256:14601b9269829cd86756ad30aaeb3199158cbc2c150ef8b9dc2ce00f1fa5c2d0
978
+ kubeadm join 192.168.0.127:6443 --token 6y18dy.oy5bt6d5y4nvop28 --discovery-token-ca-cert-hash sha256:a4e8aed696bc0481bb3f6e0af4256d41a1779141241e2684fdc6aa8bcca4d58b
977
979
978
980
979
981
You can’t perform that action at this time.
0 commit comments