Initial version of spring demo1
This commit is contained in:
parent
4213a9edc6
commit
401b03a247
22 changed files with 645 additions and 67 deletions
4
2024/07/k8s_scratch_demo1/worker/Vagrantfile
vendored
4
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 :private_network, ip: "10.1.0.3"
|
||||
config.vm.network :public_network, ip: "10.1.0.3"
|
||||
|
||||
# Disable automatic box update checking. If you disable this, then
|
||||
# boxes will only be checked for updates when the user runs
|
||||
|
@ -78,6 +78,6 @@ end
|
|||
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 TBD --discovery-token-ca-cert-hash TBD
|
||||
kubeadm join master.local: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