message
This commit is contained in:
parent
e481dd85b0
commit
b62ee8d935
@ -63,3 +63,7 @@ version = 2
|
||||
sudo systemctl restart containerd
|
||||
fi
|
||||
|
||||
sudo ln -s /etc/apparmor.d/runc /etc/apparmor.d/disable/
|
||||
sudo apparmor_parser -R /etc/apparmor.d/runc
|
||||
|
||||
touch /tmp/container.txt
|
||||
|
||||
@ -66,5 +66,9 @@ sudo install -m 755 runc.${PLATFORM} /usr/local/sbin/runc
|
||||
sudo systemctl enable --now containerd
|
||||
fi
|
||||
|
||||
sudo ln -s /etc/apparmor.d/runc /etc/apparmor.d/disable/
|
||||
sudo apparmor_parser -R /etc/apparmor.d/runc
|
||||
|
||||
|
||||
touch /tmp/container.txt
|
||||
exit
|
||||
|
||||
@ -46,12 +46,14 @@ sleep 2
|
||||
fi
|
||||
|
||||
# Set iptables bridging
|
||||
sudo cat <<EOF > /etc/sysctl.d/k8s.conf
|
||||
net.bridge.bridge-nf-call-ip6tables = 1
|
||||
net.bridge.bridge-nf-call-iptables = 1
|
||||
EOF
|
||||
sudo sysctl --system
|
||||
#sudo cat <<EOF > /etc/sysctl.d/k8s.conf
|
||||
#net.bridge.bridge-nf-call-ip6tables = 1
|
||||
#net.bridge.bridge-nf-call-iptables = 1
|
||||
#EOF
|
||||
#sudo sysctl --system
|
||||
|
||||
sudo crictl config --set \
|
||||
runtime-endpoint=unix:///run/containerd/containerd.sock
|
||||
echo 'after initializing the control node, follow instructions and use kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml to install the calico plugin (control node only). On the worker nodes, use sudo kubeadm join ... to join'
|
||||
|
||||
|
||||
|
||||
@ -47,11 +47,11 @@ sleep 2
|
||||
fi
|
||||
|
||||
# Set iptables bridging
|
||||
sudo cat <<EOF > /etc/sysctl.d/k8s.conf
|
||||
net.bridge.bridge-nf-call-ip6tables = 1
|
||||
net.bridge.bridge-nf-call-iptables = 1
|
||||
EOF
|
||||
sudo sysctl --system
|
||||
#sudo cat <<EOF > /etc/sysctl.d/k8s.conf
|
||||
#net.bridge.bridge-nf-call-ip6tables = 1
|
||||
#net.bridge.bridge-nf-call-iptables = 1
|
||||
#EOF
|
||||
#sudo sysctl --system
|
||||
|
||||
sudo crictl config --set \
|
||||
runtime-endpoint=unix:///run/containerd/containerd.sock
|
||||
|
||||
Loading…
Reference in New Issue
Block a user