Kaynağa Gözat

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

Add pull secret to the Calico controllers
Scott Dodson 6 yıl önce
ebeveyn
işleme
832d4a4d5a
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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