Moved imagePullSecrets into ServiceAccount definition

This commit is contained in:
Egor Margineanu
2020-02-19 10:45:07 +02:00
parent 667b27fe78
commit 74a31224e0

View File

@@ -4,6 +4,10 @@ kind: ServiceAccount
metadata: metadata:
name: awx name: awx
namespace: {{ kubernetes_namespace }} namespace: {{ kubernetes_namespace }}
{% if kubernetes_image_pull_secrets is defined %}
imagePullSecrets:
- name: "{{ kubernetes_image_pull_secrets }}"
{% endif %}
--- ---
kind: Service kind: Service
@@ -202,10 +206,6 @@ spec:
volumeMounts: volumeMounts:
- name: custom-venvs - name: custom-venvs
mountPath: {{ custom_venvs_path }} mountPath: {{ custom_venvs_path }}
{% endif %}
{% if kubernetes_image_pull_secrets is defined %}
imagePullSecrets:
- name: "{{ kubernetes_image_pull_secrets }}"
{% endif %} {% endif %}
containers: containers:
- name: {{ kubernetes_deployment_name }}-web - name: {{ kubernetes_deployment_name }}-web