summaryrefslogtreecommitdiff
path: root/roles/kubernetes/standalone
diff options
context:
space:
mode:
Diffstat (limited to 'roles/kubernetes/standalone')
-rw-r--r--roles/kubernetes/standalone/base/templates/kubelet.service.override.j28
1 files changed, 5 insertions, 3 deletions
diff --git a/roles/kubernetes/standalone/base/templates/kubelet.service.override.j2 b/roles/kubernetes/standalone/base/templates/kubelet.service.override.j2
index d7105856..00f2c360 100644
--- a/roles/kubernetes/standalone/base/templates/kubelet.service.override.j2
+++ b/roles/kubernetes/standalone/base/templates/kubelet.service.override.j2
@@ -1,9 +1,11 @@
[Service]
ExecStart=
ExecStart=/usr/bin/kubelet \
- --config=/etc/kubernetes/kubelet.yml \
-{% if kubernetes_cri_socket %}
+{% if kubernetes_container_runtime != 'docker' %}
--container-runtime=remote \
--container-runtime-endpoint={{ kubernetes_cri_socket }} \
-{% endif %}
+{% else %}
+ --container-runtime=docker \
--network-plugin=cni \
+{% endif %}
+ --config=/etc/kubernetes/kubelet.yml