From 1862c9e4574c0e82aa86116ac66cca4b2838b7e7 Mon Sep 17 00:00:00 2001 From: Stanislav Kosorin Date: Thu, 15 Aug 2024 21:35:42 +0200 Subject: [PATCH] Run curl with sudo in kubectl-checkpoint Previously, the curl command could not access the kubelet's client certificate and key. --- .../kubectl-plugin/kubectl-checkpoint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/container_migration_in_kubernetes/kubectl-plugin/kubectl-checkpoint b/examples/container_migration_in_kubernetes/kubectl-plugin/kubectl-checkpoint index 568bbaa..660f5ae 100755 --- a/examples/container_migration_in_kubernetes/kubectl-plugin/kubectl-checkpoint +++ b/examples/container_migration_in_kubernetes/kubectl-plugin/kubectl-checkpoint @@ -13,7 +13,7 @@ elif [ "$#" -ne 3 ]; then exit 1 fi -curl --insecure \ +sudo curl --insecure \ --cert /var/lib/kubelet/pki/kubelet-client-current.pem \ --key /var/lib/kubelet/pki/kubelet-client-current.pem \ -X POST \