diff --git a/rulebooks/README.md b/rulebooks/README.md index 2f8221f..c767eb5 100644 --- a/rulebooks/README.md +++ b/rulebooks/README.md @@ -318,7 +318,7 @@ activation-job-1 0/1 8m45s 11m By this Job, new Pod that `ansible-rulebook` running on is also created. ```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} NAME READY STATUS RESTARTS AGE activation-job-1-h9kjt 1/1 Running 0 11m @@ -360,6 +360,17 @@ spec: 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`. ```bash diff --git a/rulebooks/controller/eda.yaml b/rulebooks/controller/eda.yaml index b083e5b..2add8de 100644 --- a/rulebooks/controller/eda.yaml +++ b/rulebooks/controller/eda.yaml @@ -32,7 +32,7 @@ spec: resource_requirements: requests: {} worker: - replicas: 1 + replicas: 2 resource_requirements: requests: {} redis: