mirror of
https://github.com/Expand-sys/awx-on-k3s
synced 2025-12-17 06:22:14 +11:00
Merge pull request #248 from kurokobo/eda
fix: add note for replicas for worker
This commit is contained in:
commit
9920719497
2 changed files with 13 additions and 2 deletions
|
|
@ -318,7 +318,7 @@ activation-job-1 0/1 8m45s 11m
|
||||||
By this Job, new Pod that `ansible-rulebook` running on is also created.
|
By this Job, new Pod that `ansible-rulebook` running on is also created.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ JOB_NAME=$(kubectl -n eda get job -l activation-id=${ACTIVATION_ID} -o name | cut -d '/' -f 2)
|
$ JOB_NAME=$(kubectl -n eda get job -l activation-id=${ACTIVATION_ID} -o jsonpath={.items[0].metadata.labels.job-name})
|
||||||
$ kubectl -n eda get pod -l job-name=${JOB_NAME}
|
$ kubectl -n eda get pod -l job-name=${JOB_NAME}
|
||||||
NAME READY STATUS RESTARTS AGE
|
NAME READY STATUS RESTARTS AGE
|
||||||
activation-job-1-h9kjt 1/1 Running 0 11m
|
activation-job-1-h9kjt 1/1 Running 0 11m
|
||||||
|
|
@ -360,6 +360,17 @@ spec:
|
||||||
number: 5000
|
number: 5000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Modify `replicas` for `worker` in the same file. The number of rulebooks that can be activated simultaneously is equal to the number of this value.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
...
|
||||||
|
worker:
|
||||||
|
replicas: 2 👈👈👈
|
||||||
|
resource_requirements:
|
||||||
|
requests: {}
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
By applying this file, your webhook can be accessed on the URL `https://eda.example.com/webhooks/demo`.
|
By applying this file, your webhook can be accessed on the URL `https://eda.example.com/webhooks/demo`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ spec:
|
||||||
resource_requirements:
|
resource_requirements:
|
||||||
requests: {}
|
requests: {}
|
||||||
worker:
|
worker:
|
||||||
replicas: 1
|
replicas: 2
|
||||||
resource_requirements:
|
resource_requirements:
|
||||||
requests: {}
|
requests: {}
|
||||||
redis:
|
redis:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue