High Availability Kubernetes master by kubeadm in おうち
code:a
cat <<EOF > /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward=1
EOF
sysctl --system
sudo apt-get update && sudo apt-get install -y apt-transport-https curl
cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
EOF
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl containerd
modprobe br_netfilter
# xxxはmaster nodeのIPぶら下げたFQDN
kubeadm init --control-plane-endpoint "xxx:6443" --cri-socket=unix:///var/run/containerd/containerd.sock --upload-certs