mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-08-21 06:26:20 +00:00
Support for Virtualbox
This change adds the env variable for the support for virtualbox to support kubernetes communication between master and worker nodes. Since KVM gives default ip address to the spinned up VM's, whereas virtualbox uses same ip address for all, the kubelet was not functioning , this change fixes it and assigns the ip address to env variable.
This commit is contained in:
committed by
Nitin at Intel
parent
8787955188
commit
270bbc6f90
Vendored
+3
@@ -85,6 +85,9 @@ Vagrant.configure("2") do |config|
|
||||
c.proxy.no_proxy = (ENV['no_proxy']+"#{$proxy_ip_list}" || ENV['NO_PROXY']+"#{$proxy_ip_list}" || "localhost,127.0.0.1,172.16.10.10#{$proxy_ip_list}")
|
||||
end
|
||||
end
|
||||
c.vm.provider :virtualbox do |_, override|
|
||||
override.vm.provision "shell", privileged: true, inline: "sudo mkdir -p /etc/profile.d; echo export MASTER_IP=#{$hosts["clr-01"]} > /etc/profile.d/cnsetup.sh"
|
||||
end
|
||||
c.vm.provision "shell", privileged: false, path: "setup_system.sh", env: {"RUNNER" => $runner}
|
||||
if $setup_fc
|
||||
if $runner == "crio".to_s
|
||||
|
||||
Reference in New Issue
Block a user