Skip to content

Commit 4b3e1ea

Browse files
committed
k8s: turn off kubelet while pulling images
Turn off the kubelet until it is done, to cut down on logging. Signed-off-by: Anders F Björklund <[email protected]>
1 parent aaba2b8 commit 4b3e1ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/k8s.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ provision:
9797
set -eux -o pipefail
9898
test -e /etc/kubernetes/admin.conf && exit 0
9999
export KUBECONFIG=/etc/kubernetes/admin.conf
100+
systemctl stop kubelet
100101
kubeadm config images list
101102
kubeadm config images pull --cri-socket=unix:///run/containerd/containerd.sock
103+
systemctl start kubelet
102104
# Initializing your control-plane node
103105
cat <<EOF >kubeadm-config.yaml
104106
kind: InitConfiguration

0 commit comments

Comments
 (0)