فهرست منبع

Merge pull request #10477 from mgleung/add-calico-pull-secret

Add pull secret to the Calico controllers
Scott Dodson 6 سال پیش
والد
کامیت
832d4a4d5a
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      roles/calico/templates/calicov3.yml.j2

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

@@ -472,6 +472,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