summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_virtlet/worker_setup.sh
blob: 438977017e87dac8e8799985fad3360b8b2cc20e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -ex
sudo timeout 600 kubeadm join --token 8c5adc.1cec8dbf339093f0 192.168.1.10:6443 || true

sudo docker pull openretriever/virtlet
sudo docker run --rm openretriever/virtlet tar -c /criproxy | sudo tar -C /usr/local/bin -xv
sudo ln -s /usr/local/bin/criproxy /usr/local/bin/dockershim

sudo mkdir /etc/criproxy
sudo touch /etc/criproxy/node.conf
sudo cp -r /vagrant/virtlet/etc/systemd/system/* /etc/systemd/system/
sudo systemctl stop kubelet
sudo systemctl daemon-reload
sudo systemctl enable criproxy dockershim
sudo systemctl start criproxy dockershim
sudo systemctl daemon-reload
sudo systemctl start kubelet
an>'vlan', models.IntegerField()), ('in_use', models.BooleanField(default=False)), ('cidr', models.CharField(default='0.0.0.0/0', max_length=50)), ('gateway', models.CharField(default='0.0.0.0', max_length=50)), ('lab', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Lab')), ], ), ]