Skip to content

Commit

Permalink
Run curl with sudo in kubectl-checkpoint
Browse files Browse the repository at this point in the history
Previously, the curl command could not access
the kubelet's client certificate and key.
  • Loading branch information
stano45 committed Aug 16, 2024
1 parent 004ccd3 commit 1862c9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 1862c9e

Please sign in to comment.