This commit is contained in:
Eliezer Croitoru 2024-01-28 18:27:05 +00:00
parent 06f0946686
commit 3cc31c085a
2 changed files with 6 additions and 1 deletions

View File

@ -5,5 +5,9 @@ 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 )
--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

View File

@ -4,6 +4,7 @@ export DEBIAN_FRONTEND=noninteractive
apt install -y apt-transport-https ca-certificates curl gpg
stat /etc/apt/keyrings/kubernetes-apt-keyring.gpg || \
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /' | \