diff options
author | Yapeng Wu <yapengwu@gmail.com> | 2018-01-18 20:10:06 +0000 |
---|---|---|
committer | Yapeng Wu <yapengwu@gmail.com> | 2018-01-19 18:39:06 +0000 |
commit | b5f2330198ba9eb581972f1f394f7cf8c3ed2db8 (patch) | |
tree | 8e61a7f7f6e0427b839e51aae6bfacafccb1a413 /src/vagrant/kubeadm_istio/Vagrantfile | |
parent | 47fd6c397129ed89a2e67349829222c791632d2c (diff) |
Add istio 0.4 installation on top of k8s 1.9
Based on k8s 1.9 (kubeadm_basic) installation, adding
the istio 0.4 installation and simple validation.
Change-Id: Iee2c71974fb2b33df0f9342e0bfd9e96e4dab8f5
Signed-off-by: Yapeng Wu <yapengwu@gmail.com>
Diffstat (limited to 'src/vagrant/kubeadm_istio/Vagrantfile')
-rw-r--r-- | src/vagrant/kubeadm_istio/Vagrantfile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/vagrant/kubeadm_istio/Vagrantfile b/src/vagrant/kubeadm_istio/Vagrantfile new file mode 100644 index 0000000..9f78e9f --- /dev/null +++ b/src/vagrant/kubeadm_istio/Vagrantfile @@ -0,0 +1,29 @@ +$num_workers=2 + +Vagrant.require_version ">= 1.8.6" +Vagrant.configure("2") do |config| + + config.vm.box = "ceph/ubuntu-xenial" + config.vm.provider :libvirt do |libvirt| + libvirt.memory = 4096 + libvirt.cpus = 4 + end + + config.vm.synced_folder "../..", "/src" + config.vm.provision "shell", path: "host_setup.sh", privileged: false + + config.vm.define "master" do |config| + config.vm.hostname = "master" + config.vm.provision "shell", path: "master_setup.sh", privileged: false + config.vm.network :private_network, ip: "192.168.1.10" + end + + (1 .. $num_workers).each do |i| + config.vm.define vm_name = "worker%d" % [i] do |config| + config.vm.hostname = vm_name + config.vm.provision "shell", path: "worker_setup.sh", privileged: false + config.vm.network :private_network, ip: "192.168.1.#{i+20}" + end + end + +end |