16
This commit is contained in:
parent
06f0946686
commit
3cc31c085a
@ -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
|
||||
|
@ -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/ /' | \
|
||||
|
Loading…
Reference in New Issue
Block a user