mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
* adds persistence.storageClass and limits to postgress helm install
* adds new variables to the inventory Signed-off-by: Corey Wanless <corey.wanless@wwt.com>
This commit is contained in:
parent
e3872ebd58
commit
0c074e0988
@ -21,6 +21,10 @@ dockerhub_base=ansible
|
||||
# kubernetes_context=test-cluster
|
||||
# kubernetes_namespace=awx
|
||||
# tiller_namespace=kube-system
|
||||
# Optional Kubernetes Variables
|
||||
# pg_persistence_storageClass=StorageClassName
|
||||
# pg_cpu_limit=1000
|
||||
# pg_mem_limit=2
|
||||
|
||||
# Kubernetes and Openshift Install Resource Requests
|
||||
# This is the request value for a pod's "task" container, which is the container
|
||||
|
||||
@ -86,6 +86,9 @@
|
||||
--set postgresqlDatabase={{ pg_database }} \
|
||||
--set persistence.size={{ pg_volume_capacity|default('5')}}Gi \
|
||||
--tiller-namespace={{ tiller_namespace | default('kube-system') }} \
|
||||
{{ '--set persistence.storageClass='+pg_persistence_storageClass if pg_persistence_storageClass is defined else ' ' }} \
|
||||
{{ '--set resources.limits.cpu='+(pg_cpu_limit | string)+'m' if pg_cpu_limit is defined else ' ' }} \
|
||||
{{ '--set resources.limits.memory='+(pg_mem_limit | string)+'Gi' if pg_mem_limit is defined else ' ' }} \
|
||||
stable/postgresql
|
||||
when:
|
||||
- pg_hostname is not defined or pg_hostname == ''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user