Skip to content

Commit

Permalink
Hardcode kubeconfig path for wait-online
Browse files Browse the repository at this point in the history
Puppet doesn't run with the $HOME environment variable set, so kubectl
won't check the path on its own
  • Loading branch information
ananace committed Apr 12, 2023
1 parent 5d79abc commit 2aa8c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/server/wait_online.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class k8s::server::wait_online {
# Wait up to 30 seconds for kube-apiserver to start
exec { 'k8s-apiserver wait online':
command => 'kubectl version',
command => 'kubectl --kubeconfig /root/.kube/config version',
path => $facts['path'],
refreshonly => true,
tries => 15,
Expand Down

0 comments on commit 2aa8c65

Please sign in to comment.