onpremise k8s clusterにcalicoをinstallする
code:sh
cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf
overlay
br_netfilter
EOF
sudo modprobe overlay
sudo modprobe br_netfilter
cat <<EOF | sudo tee /etc/sysctl.d/k8s-cni.conf
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
EOF
sudo sysctl --system
code:sh
# RuntimeReady, NetworkReadyを確認
sudo crictl info
code:sh
# pod-network-cidr に変更
vim custom-resources.yaml
kubectl create -f custom-resources.yaml
code:sh
kubectl get po --all-namespaces # calico-node 等がReadyになるのを確認
kubectl get node # nodeがReadyになったのを確認