fix(vagrantfile): set kubeconfig permissions to 600 to suppress Helm warnings

This commit is contained in:
Paul Harkink 2026-02-28 16:17:35 +01:00
parent 6e7ebc59c4
commit ced5b64be1

1
Vagrantfile vendored
View file

@ -52,6 +52,7 @@ $provision = <<-SHELL
# Point server to host-only IP so it works outside the VM too # 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 sed -i "s|127.0.0.1|#{HOST_ONLY_IP}|g" /home/vagrant/.kube/config
chown -R vagrant:vagrant /home/vagrant/.kube chown -R vagrant:vagrant /home/vagrant/.kube
chmod 600 /home/vagrant/.kube/config
# Also export KUBECONFIG in .bashrc # Also export KUBECONFIG in .bashrc
echo 'export KUBECONFIG=/home/vagrant/.kube/config' >> /home/vagrant/.bashrc echo 'export KUBECONFIG=/home/vagrant/.kube/config' >> /home/vagrant/.bashrc