INNER CODE UNIT · Shell

NODENAME

walidshaari/Kubernetes-Certified-Administrator · labs/kubeadm-cluster/scripts/cp.sh:5

NODENAME=$(hostname -s)
POD_CIDR="192.168.0.0/16"

# Pinned addon versions. Calico v3.32 is tested against Kubernetes 1.34-1.36;
# the old unpinned docs.projectcalico.org manifest still resolves but serves
# Calico v3.25.0, which does not support Kubernetes 1.35.
CALICO_VERSION="v3.32.2"
METRICS_SERVER_VERSION="v0.9.0"
# etcd 3.6 ships etcdutl, which is required for snapshot restore
# (etcdctl snapshot restore was removed in etcd 3.6).
ETCD_VERSION="v3.6.6"

sudo kubeadm config images pull

echo "Preflight Check Passed: Downloaded All Required Images"


sudo kubeadm init --apiserver-advertise-address=$CP_IP  --apiserver-cert-extra-sans=$CP_IP --pod-network-cidr=$POD_CIDR --node-name $NODENAME  --cri-socket unix:///run/containerd/containerd.sock  #--ignore-preflight-errors Swap

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…