#!/usr/bin/env bash kubeadm config images pull --cri-socket /run/containerd/containerd.sock kubeadm init \ --pod-network-cidr=10.244.0.0/16 \ --upload-certs \ --node-name $(hostname -f ) \ --control-plane-endpoint=$(hostname -f ) mkdir -p $HOME/.kube cp -f /etc/kubernetes/admin.conf $HOME/.kube/config chown $(id -u):$(id -g) $HOME/.kube/config