Configurable image registry and service account for Postgres deployment.

This commit is contained in:
Martin Adema 2019-11-20 14:15:59 +01:00
parent 6f2b10daf5
commit 80b75a163a
2 changed files with 18 additions and 0 deletions

View File

@ -22,6 +22,9 @@ dockerhub_base=ansible
# kubernetes_namespace=awx
# tiller_namespace=kube-system
# Optional Kubernetes Variables
# pg_image_registry=docker.io
# pg_serviceaccount=awx
# pg_volume_capacity=5
# pg_persistence_storageClass=StorageClassName
# pg_cpu_limit=1000
# pg_mem_limit=2

View File

@ -31,3 +31,18 @@ master:
{{ affinity | to_nice_yaml(indent=2) | indent(width=4, indentfirst=True) }}
{% endif %}
{% endif %}
{% if pg_image_registry is defined %}
image:
registry: {{ pg_image_registry }}
volumePermissions:
image:
registry: {{ pg_image_registry }}
metrics:
image:
registry: {{ pg_image_registry }}
{% endif %}
{% if pg_serviceaccount is defined %}
serviceAccount:
enabled: true
name: {{ pg_serviceaccount }}
{% endif %}