Small fixes for calico, they do start, run but not fully work because of

double adapters.
This commit is contained in:
Tomasz Półgrabia 2024-07-05 01:08:55 +02:00
parent 401b03a247
commit e5731bfc37
6 changed files with 45 additions and 21 deletions

View file

@ -16,7 +16,7 @@ Vagrant.configure("2") do |config|
config.vm.hostname = "worker.local"
config.vm.network :public_network, ip: "10.1.0.3"
config.vm.network :public_network, ip: "10.96.0.2"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
@ -77,7 +77,6 @@ end
# documentation for more information about their specific syntax and use.
config.vm.provision "shell", inline: <<-SHELL
apt-get update
grep "master.local" /etc/hosts || cat /vagrant/hosts.txt >> /etc/hosts
kubeadm join master.local:6443 --token $(cat /vagrant/token.secret) --discovery-token-ca-cert-hash $(cat /vagrant/discovery.secret)
kubeadm join --v=5 10.96.0.1:6443 --token $(cat /vagrant/token.secret) --discovery-token-ca-cert-hash $(cat /vagrant/discovery.secret)
SHELL
end