diff options
author | Guo Ruijing <ruijing.guo@intel.com> | 2017-10-15 11:21:22 -0700 |
---|---|---|
committer | Guo Ruijing <ruijing.guo@intel.com> | 2017-10-15 11:30:37 -0700 |
commit | 4b7b5289169f5790a9cbdd65edf01cd3f372ee99 (patch) | |
tree | 0cfbfa6c73fa6425798d864d95505c41ffd1ecbf /src/vagrant/kubeadm_virtlet/examples/virtlet.sh | |
parent | d9c7adad6ec6f5496f9b9ea2db07e01ffc8d4899 (diff) |
support virtlet in container4nfv
Change-Id: I913149ecf374a0a8f0d0bbb65aff52854401bbd6
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vagrant/kubeadm_virtlet/examples/virtlet.sh')
-rwxr-xr-x | src/vagrant/kubeadm_virtlet/examples/virtlet.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vagrant/kubeadm_virtlet/examples/virtlet.sh b/src/vagrant/kubeadm_virtlet/examples/virtlet.sh new file mode 100755 index 0000000..68d738d --- /dev/null +++ b/src/vagrant/kubeadm_virtlet/examples/virtlet.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +kubectl label node worker1 extraRuntime=virtlet +kubectl label node worker2 extraRuntime=virtlet +kubectl label node worker3 extraRuntime=virtlet +kubectl create configmap -n kube-system virtlet-config --from-literal=download_protocol=http --from-literal=image_regexp_translation=1 --from-literal=disable_kvm=y +kubectl create configmap -n kube-system virtlet-image-translations --from-file images.yaml +kubectl create -f virtlet-ds.yaml +kubectl create -f cirros-vm.yaml |