Browse Source

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

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

Signed-off-by: Kevin Huang <git@kevin.huang.to>
pull/9624/head
Kevin Huang 2 years ago
committed by GitHub
parent
commit
2c2e608eac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/kubernetes/control-plane/templates/k8s-certs-renew.sh.j2

2
roles/kubernetes/control-plane/templates/k8s-certs-renew.sh.j2

@ -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
Loading…
Cancel
Save