fix(vagrantfile): set kubeconfig permissions to 600 to suppress Helm warnings
This commit is contained in:
parent
6e7ebc59c4
commit
ced5b64be1
1 changed files with 1 additions and 0 deletions
1
Vagrantfile
vendored
1
Vagrantfile
vendored
|
|
@ -52,6 +52,7 @@ $provision = <<-SHELL
|
|||
# Point server to host-only IP so it works outside the VM too
|
||||
sed -i "s|127.0.0.1|#{HOST_ONLY_IP}|g" /home/vagrant/.kube/config
|
||||
chown -R vagrant:vagrant /home/vagrant/.kube
|
||||
chmod 600 /home/vagrant/.kube/config
|
||||
|
||||
# Also export KUBECONFIG in .bashrc
|
||||
echo 'export KUBECONFIG=/home/vagrant/.kube/config' >> /home/vagrant/.bashrc
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue