summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_virtlet/virtlet/etc/systemd
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-10-15 11:21:22 -0700
committerGuo Ruijing <ruijing.guo@intel.com>2017-10-15 11:30:37 -0700
commit4b7b5289169f5790a9cbdd65edf01cd3f372ee99 (patch)
tree0cfbfa6c73fa6425798d864d95505c41ffd1ecbf /src/vagrant/kubeadm_virtlet/virtlet/etc/systemd
parentd9c7adad6ec6f5496f9b9ea2db07e01ffc8d4899 (diff)
support virtlet in container4nfv
Change-Id: I913149ecf374a0a8f0d0bbb65aff52854401bbd6 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vagrant/kubeadm_virtlet/virtlet/etc/systemd')
-rw-r--r--src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/criproxy.service11
-rw-r--r--src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/dockershim.service11
-rw-r--r--src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/kubelet.service.d/20-criproxy.conf2
3 files changed, 24 insertions, 0 deletions
diff --git a/src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/criproxy.service b/src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/criproxy.service
new file mode 100644
index 0000000..bb2f1de
--- /dev/null
+++ b/src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/criproxy.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=CRI Proxy
+
+[Service]
+ExecStart=/usr/local/bin/criproxy -v 3 -alsologtostderr -connect /var/run/dockershim.sock,virtlet:/run/virtlet.sock -listen /run/criproxy.sock
+Restart=always
+StartLimitInterval=0
+RestartSec=10
+
+[Install]
+WantedBy=kubelet.service
diff --git a/src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/dockershim.service b/src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/dockershim.service
new file mode 100644
index 0000000..c629a4b
--- /dev/null
+++ b/src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/dockershim.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=dockershim for criproxy
+
+[Service]
+ExecStart=/usr/local/bin/dockershim ......
+Restart=always
+StartLimitInterval=0
+RestartSec=10
+
+[Install]
+RequiredBy=criproxy.service
diff --git a/src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/kubelet.service.d/20-criproxy.conf b/src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/kubelet.service.d/20-criproxy.conf
new file mode 100644
index 0000000..412a48d
--- /dev/null
+++ b/src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/kubelet.service.d/20-criproxy.conf
@@ -0,0 +1,2 @@
+[Service]
+Environment="KUBELET_EXTRA_ARGS=--container-runtime=remote --container-runtime-endpoint=/run/criproxy.sock --image-service-endpoint=/run/criproxy.sock --enable-controller-attach-detach=false"