From 4b7b5289169f5790a9cbdd65edf01cd3f372ee99 Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Sun, 15 Oct 2017 11:21:22 -0700 Subject: support virtlet in container4nfv Change-Id: I913149ecf374a0a8f0d0bbb65aff52854401bbd6 Signed-off-by: Guo Ruijing --- .../virtlet/etc/systemd/system/criproxy.service | 11 +++++++++++ .../virtlet/etc/systemd/system/dockershim.service | 11 +++++++++++ .../etc/systemd/system/kubelet.service.d/20-criproxy.conf | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/criproxy.service create mode 100644 src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/dockershim.service create mode 100644 src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system/kubelet.service.d/20-criproxy.conf (limited to 'src/vagrant/kubeadm_virtlet/virtlet/etc/systemd/system') 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" -- cgit 1.2.3-korg