diff --git a/roles/kubernetes/node/templates/kubelet.rkt.service.j2 b/roles/kubernetes/node/templates/kubelet.rkt.service.j2 index 5f8351458..2c889d8c6 100644 --- a/roles/kubernetes/node/templates/kubelet.rkt.service.j2 +++ b/roles/kubernetes/node/templates/kubelet.rkt.service.j2 @@ -53,7 +53,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 \