瀏覽代碼

Add pull secret to the Calico controllers

matt 6 年之前
父節點
當前提交
09180a2c02
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      roles/calico/templates/calicov3.yml.j2

+ 4 - 0
roles/calico/templates/calicov3.yml.j2

@@ -470,6 +470,10 @@ spec:
       labels:
         k8s-app: calico-kube-controllers
     spec:
+{% if calico_image_credentials is defined %}
+      imagePullSecrets:
+        - name: calico-pull-secret
+{% endif %}
       # The controllers must run in the host network namespace so that
       # it isn't governed by policy that would prevent it from working.
       hostNetwork: true