Skip to content
Snippets Groups Projects
Unverified Commit 2c2e608e authored by Kevin Huang's avatar Kevin Huang Committed by GitHub
Browse files

fix(k8s-certs-renew): Use kube_apiserver_port instead of hard-coding (#9620)


Signed-off-by: default avatarKevin Huang <git@kevin.huang.to>

Signed-off-by: default avatarKevin Huang <git@kevin.huang.to>
parent 8267922a
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ echo "## Updating /root/.kube/config ##"
cp {{ kube_config_dir }}/admin.conf /root/.kube/config
echo "## Waiting for apiserver to be up again ##"
until printf "" 2>>/dev/null >>/dev/tcp/127.0.0.1/6443; do sleep 1; done
until printf "" 2>>/dev/null >>/dev/tcp/127.0.0.1/{{ kube_apiserver_port | default(6443) }}; do sleep 1; done
echo "## Expiration after renewal ##"
{{ bin_dir }}/kubeadm certs check-expiration
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment