From 4e73f886937adbd62b6acdec055d5f0d02aba0fb Mon Sep 17 00:00:00 2001 From: Johannes Scheerer Date: Tue, 9 Jan 2024 11:25:28 +0100 Subject: [PATCH] Adapt machine readiness probe to node-agent Gardener node agent does not download kubectl anymore to /opt/bin/kubectl. Therefore, the readiness probe of machines in the local setup should no longer refer to this binary. Fortunately, the node image already comes with kubectl in /usr/bin/kubectl, which works for the readiness probe. --- pkg/local/create_machine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/local/create_machine.go b/pkg/local/create_machine.go index 43c60ed3..50480752 100644 --- a/pkg/local/create_machine.go +++ b/pkg/local/create_machine.go @@ -150,7 +150,7 @@ func (d *localDriver) applyPod( ReadinessProbe: &corev1.Probe{ ProbeHandler: corev1.ProbeHandler{ Exec: &corev1.ExecAction{ - Command: []string{"sh", "-c", "/opt/bin/kubectl --kubeconfig /var/lib/kubelet/kubeconfig-real get no $NODE_NAME"}, + Command: []string{"sh", "-c", "/usr/bin/kubectl --kubeconfig /var/lib/kubelet/kubeconfig-real get no $NODE_NAME"}, }, }, },