mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 22:33:35 +00:00
Add docs for priority classes & fix typo
This commit is contained in:
committed by
Seth Foster
parent
21062f0708
commit
dfa0f6d45e
19
README.md
19
README.md
@@ -442,6 +442,7 @@ The following variables are customizable for the managed PostgreSQL service
|
|||||||
| postgres_storage_requirements | PostgreSQL container storage requirements | requests: {storage: 8Gi} |
|
| postgres_storage_requirements | PostgreSQL container storage requirements | requests: {storage: 8Gi} |
|
||||||
| postgres_storage_class | PostgreSQL PV storage class | Empty string |
|
| postgres_storage_class | PostgreSQL PV storage class | Empty string |
|
||||||
| postgres_data_path | PostgreSQL data path | `/var/lib/postgresql/data/pgdata` |
|
| postgres_data_path | PostgreSQL data path | `/var/lib/postgresql/data/pgdata` |
|
||||||
|
| postgres_priority_class | Priority class used for PostgreSQL pod | Empty string |
|
||||||
|
|
||||||
Example of customization could be:
|
Example of customization could be:
|
||||||
|
|
||||||
@@ -576,6 +577,24 @@ spec:
|
|||||||
memory: 2Gi
|
memory: 2Gi
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Priority Classes
|
||||||
|
|
||||||
|
The AWX and Postgres pods can be assigned a custom PriorityClass to rank their importance compared to other pods in your cluster, which determines which pods get evicted first if resources are running low.
|
||||||
|
First, [create your PriorityClass](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) if needed.
|
||||||
|
Then set the name of your priority class to the control plane and postgres pods as shown below.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
apiVersion: awx.ansible.com/v1beta1
|
||||||
|
kind: AWX
|
||||||
|
metadata:
|
||||||
|
name: awx-demo
|
||||||
|
spec:
|
||||||
|
...
|
||||||
|
control_plane_priority_class: awx-demo-high-priority
|
||||||
|
postgres_priority_class: awx-demo-medium-priority
|
||||||
|
```
|
||||||
|
|
||||||
#### Assigning AWX pods to specific nodes
|
#### Assigning AWX pods to specific nodes
|
||||||
|
|
||||||
You can constrain the AWX pods created by the operator to run on a certain subset of nodes. `node_selector` and `postgres_selector` constrains
|
You can constrain the AWX pods created by the operator to run on a certain subset of nodes. `node_selector` and `postgres_selector` constrains
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ spec:
|
|||||||
- name: {{ secret }}
|
- name: {{ secret }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if control_plane_priorityclass is defined %}
|
{% if control_plane_priority_class is defined %}
|
||||||
priorityClassName: '{{ control_plane_priority_class }}'
|
priorityClassName: '{{ control_plane_priority_class }}'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
initContainers:
|
initContainers:
|
||||||
|
|||||||
Reference in New Issue
Block a user