mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
Implement container-cluster aware capacity determination
* Added two settings values for declaring absolute cpu and memory capacity that will be picked up by the capacity utility methods * installer inventory variables for controlling the amount of cpu and memory container requests/limits for the awx task containers * Added fixed values for cpu and memory container requests for other containers * configmap uses the declared inventory variables to define the capacity inputs that will be used by AWX to correspond to the same inputs for requests/limits on the deployment.
This commit is contained in:
@@ -21,6 +21,10 @@ spec:
|
||||
volumeMounts:
|
||||
- mountPath: /etc/tower
|
||||
name: awx-application-config
|
||||
resources:
|
||||
requests:
|
||||
memory: "1Gi"
|
||||
cpu: "500m"
|
||||
- name: awx-celery
|
||||
image: {{ awx_task_openshift_image }}
|
||||
imagePullPolicy: Always
|
||||
@@ -46,6 +50,13 @@ spec:
|
||||
value: {{ default_admin_user|default('admin') }}
|
||||
- name: AWX_ADMIN_PASSWORD
|
||||
value: {{ default_admin_password|default('password') }}
|
||||
resources:
|
||||
requests:
|
||||
memory: "{{ awx_task_cpu_request|default('2') }}Gi"
|
||||
cpu: "{{ awx_task_mem_request|default('1500') }}m"
|
||||
limit:
|
||||
memory: "{{ awx_task_cpu_request|default('2') }}Gi"
|
||||
cpu: "{{ awx_task_mem_request|default('1500') }}m"
|
||||
- name: awx-rabbit
|
||||
image: ansible/awx_rabbitmq:{{ rabbitmq_version }}
|
||||
imagePullPolicy: Always
|
||||
@@ -81,8 +92,16 @@ spec:
|
||||
value: "awx"
|
||||
- name: RABBITMQ_CONFIG_FILE
|
||||
value: "/etc/rabbitmq/rabbitmq"
|
||||
resources:
|
||||
requests:
|
||||
memory: "2Gi"
|
||||
cpu: "500m"
|
||||
- name: awx-memcached
|
||||
image: memcached
|
||||
resources:
|
||||
requests:
|
||||
memory: "1Gi"
|
||||
cpu: "500m"
|
||||
volumes:
|
||||
- name: awx-application-config
|
||||
configMap:
|
||||
|
||||
Reference in New Issue
Block a user