Skip to content

Commit 6d3258e

Browse files
committed
Download the needed images before kubeadm init
Makes it easier to troubleshoot, should the "pull" fail. Also makes the total cluster startup time more accurate. Signed-off-by: Anders F Björklund <[email protected]>
1 parent 518c666 commit 6d3258e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/k8s.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ provision:
6565
set -eux -o pipefail
6666
test -e /etc/kubernetes/admin.conf && exit 0
6767
export KUBECONFIG=/etc/kubernetes/admin.conf
68+
kubeadm config images list
69+
kubeadm config images pull
6870
# Initializing your control-plane node
6971
kubeadm init --cri-socket=/run/containerd/containerd.sock --pod-network-cidr=10.244.0.0/16 --apiserver-cert-extra-sans 127.0.0.1
7072
# Installing a Pod network add-on

0 commit comments

Comments
 (0)