onpremise k8s clusterにcalicoをinstallする
https://docs.tigera.io/calico/latest/getting-started/kubernetes/self-managed-onprem/onpremises
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
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.29.2/manifests/tigera-operator.yaml
curl https://raw.githubusercontent.com/projectcalico/calico/v3.29.2/manifests/custom-resources.yaml -O
# 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になったのを確認
#kubeadm_でおうちk8s構築