update redis stuff

This commit is contained in:
2022-03-21 18:28:26 +11:00
parent d576744f35
commit 4d79c56d67
6 changed files with 36 additions and 7 deletions
+19
View File
@@ -56,3 +56,22 @@ kubectl -n kube-system apply -f https://raw.githubusercontent.com/coreos/flannel
vim /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
# update KUBELET_CGROUP_ARGS=--cgroup-driver=systemd to KUBELET_CGROUP_ARGS=--cgroup-driver=cgroupfs
## Add new nodes as control plane
# first prepre certificate key, run this one the existing control plan
kubeadm init phase upload-certs --upload-certs
# run the following the node to be added
kubeadm join 192.168.1.2:6443 --token xxx --discovery-token-ca-cert-hash sha256:xxx --control-plane --certificate-key xxx
# disbale swap
sudo swapoff -a
sudo rm /swap.img
vim /etc/fstab # and remove swap
# check
sudo swapon --show