mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
update documentation for the new fields added
This commit is contained in:
44
README.md
44
README.md
@@ -716,7 +716,14 @@ spec:
|
|||||||
control_plane_priority_class: awx-demo-high-priority
|
control_plane_priority_class: awx-demo-high-priority
|
||||||
postgres_priority_class: awx-demo-medium-priority
|
postgres_priority_class: awx-demo-medium-priority
|
||||||
```
|
```
|
||||||
|
#### Scaling the Web and Task Pods independently
|
||||||
|
|
||||||
|
You can scale replicas up or down for each deployment by using the `web_replicas` or `task_replicas` respectively. You can scale all pods across both deployments by using `replicas` as well. The logic behind these CRD keys acts as such:
|
||||||
|
|
||||||
|
- If you specify the `replicas` field, the key passed will scale both the `web` and `task` replicas to the same number.
|
||||||
|
- If `web_replicas` or `task_replicas` is ever passed, it will override the existing `replicas` field on the specific deployment with the new key value.
|
||||||
|
|
||||||
|
These new replicas can be constrained in a similar manner to previous single deployments by appending the particular deployment name in front of the constraint used. More about those new constraints can be found below in the [Assigning AWX pods to specific nodes](#assigning-awx-pods-to-specific-nodes) section.
|
||||||
#### 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
|
||||||
@@ -725,18 +732,28 @@ pods to be scheduled onto nodes with matching taints.
|
|||||||
The ability to specify topologySpreadConstraints is also allowed through `topology_spread_constraints`
|
The ability to specify topologySpreadConstraints is also allowed through `topology_spread_constraints`
|
||||||
If you want to use affinity rules for your AWX pod you can use the `affinity` option.
|
If you want to use affinity rules for your AWX pod you can use the `affinity` option.
|
||||||
|
|
||||||
|
If you want to constrain the web and task pods individually, you can do so by specificying the deployment type before the specific setting. For
|
||||||
|
example, specifying `task_tolerations` will allow the AWX task pod to be scheduled onto nodes with matching taints.
|
||||||
|
|
||||||
| Name | Description | Default |
|
| Name | Description | Default |
|
||||||
| --------------------------- | ----------------------------------- | ------- |
|
| -------------------------------- | ---------------------------------------- | ------- |
|
||||||
| postgres_image | Path of the image to pull | postgres |
|
| postgres_image | Path of the image to pull | postgres |
|
||||||
| postgres_image_version | Image version to pull | 13 |
|
| postgres_image_version | Image version to pull | 13 |
|
||||||
| node_selector | AWX pods' nodeSelector | '' |
|
| node_selector | AWX pods' nodeSelector | '' |
|
||||||
| topology_spread_constraints | AWX pods' topologySpreadConstraints | '' |
|
| web_node_selector | AWX web pods' nodeSelector | '' |
|
||||||
| affinity | AWX pods' affinity rules | '' |
|
| task_node_selector | AWX task pods' nodeSelector | '' |
|
||||||
| tolerations | AWX pods' tolerations | '' |
|
| topology_spread_constraints | AWX pods' topologySpreadConstraints | '' |
|
||||||
| annotations | AWX pods' annotations | '' |
|
| web_topology_spread_constraints | AWX web pods' topologySpreadConstraints | '' |
|
||||||
| postgres_selector | Postgres pods' nodeSelector | '' |
|
| task_topology_spread_constraints | AWX task pods' topologySpreadConstraints | '' |
|
||||||
| postgres_tolerations | Postgres pods' tolerations | '' |
|
| affinity | AWX pods' affinity rules | '' |
|
||||||
|
| web_affinity | AWX web pods' affinity rules | '' |
|
||||||
|
| task_affinity | AWX task pods' affinity rules | '' |
|
||||||
|
| tolerations | AWX pods' tolerations | '' |
|
||||||
|
| web_tolerations | AWX web pods' tolerations | '' |
|
||||||
|
| task_tolerations | AWX task pods' tolerations | '' |
|
||||||
|
| annotations | AWX pods' annotations | '' |
|
||||||
|
| postgres_selector | Postgres pods' nodeSelector | '' |
|
||||||
|
| postgres_tolerations | Postgres pods' tolerations | '' |
|
||||||
|
|
||||||
Example of customization could be:
|
Example of customization could be:
|
||||||
|
|
||||||
@@ -760,6 +777,11 @@ spec:
|
|||||||
operator: "Equal"
|
operator: "Equal"
|
||||||
value: "AWX"
|
value: "AWX"
|
||||||
effect: "NoSchedule"
|
effect: "NoSchedule"
|
||||||
|
task_tolerations: |
|
||||||
|
- key: "dedicated"
|
||||||
|
operator: "Equal"
|
||||||
|
value: "AWX_task"
|
||||||
|
effect: "NoSchedule"
|
||||||
postgres_selector: |
|
postgres_selector: |
|
||||||
disktype: ssd
|
disktype: ssd
|
||||||
kubernetes.io/arch: amd64
|
kubernetes.io/arch: amd64
|
||||||
|
|||||||
Reference in New Issue
Block a user