From 79d7232e9561f3fd92faff7afbeed1eb2deb0715 Mon Sep 17 00:00:00 2001 From: Wang Zhen Date: Tue, 21 Sep 2021 00:23:46 +0800 Subject: [PATCH] Fix k8s-certs-renew cp path Signed-off-by: Wang Zhen --- roles/kubernetes/control-plane/templates/k8s-certs-renew.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/control-plane/templates/k8s-certs-renew.sh.j2 b/roles/kubernetes/control-plane/templates/k8s-certs-renew.sh.j2 index b3dae43cc26..3219ded2490 100644 --- a/roles/kubernetes/control-plane/templates/k8s-certs-renew.sh.j2 +++ b/roles/kubernetes/control-plane/templates/k8s-certs-renew.sh.j2 @@ -14,7 +14,7 @@ echo "## Restarting control plane pods managed by kubeadm ##" {% endif %} echo "## Updating /root/.kube/config ##" -/usr/bin/cp {{ kube_config_dir }}/admin.conf /root/.kube/config +/bin/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