Small fixes for calico, they do start, run but not fully work because of
double adapters.
This commit is contained in:
parent
401b03a247
commit
e5731bfc37
6 changed files with 45 additions and 21 deletions
5
2024/07/k8s_scratch_demo1/worker/Vagrantfile
vendored
5
2024/07/k8s_scratch_demo1/worker/Vagrantfile
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue