From a8cfab27fe6edb466bc7c169bfde8516b6565fca Mon Sep 17 00:00:00 2001 From: Brad Beam Date: Wed, 22 Feb 2017 14:14:21 -0600 Subject: [PATCH] Adding flag for docker container in kubelet w/ rkt --- roles/kubernetes/node/templates/kubelet.rkt.service.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/kubernetes/node/templates/kubelet.rkt.service.j2 b/roles/kubernetes/node/templates/kubelet.rkt.service.j2 index 1ccccc43d..bcc1734a4 100644 --- a/roles/kubernetes/node/templates/kubelet.rkt.service.j2 +++ b/roles/kubernetes/node/templates/kubelet.rkt.service.j2 @@ -49,7 +49,12 @@ ExecStart=/usr/bin/rkt run \ --mount volume=var-lib-kubelet,target=/var/lib/kubelet \ --mount volume=var-log,target=/var/log \ --stage1-from-dir=stage1-fly.aci \ +{% if kube_hyperkube_image_repo == "docker" %} + --insecure-options=image \ + docker://{{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} \ +{% else %} {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} \ +{% endif %} --uuid-file-save=/var/run/kubelet.uuid \ --debug --exec=/kubelet -- \ $KUBE_LOGTOSTDERR \