-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to deploy Zeebe workers with zbchaos (#247)
Add new sub-command to deploy Zeebe workers into a Zeebe cluster, which can be used for several chaos experiments. This allows completing process instances etc. closes #235 -------- **Example:** Non-verbose: Deploy worker: ```sh $ ./zbchaos deploy worker Worker successfully deployed to the current namespace: zell-chaos ``` Verbose: Deploy worker ```sh $ ./zbchaos deploy worker -v Connecting to zell-chaos Running experiment in self-managed environment. Deploy worker deployment to the current namespace: zell-chaos Worker successfully deployed to the current namespace: zell-chaos ``` ```sh $ k get deployments.apps NAME READY UP-TO-DATE AVAILABLE AGE worker 3/3 3 3 107s ``` Error when deployment already exists: ``` $ ./zbchaos deploy worker -v Connecting to zell-chaos Running experiment in self-managed environment. Deploy worker deployment to the current namespace: zell-chaos panic: deployments.apps "worker" already exists ```
- Loading branch information
Showing
4 changed files
with
106 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: worker | ||
labels: | ||
app: worker | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: worker | ||
replicas: 3 | ||
template: | ||
metadata: | ||
labels: | ||
app: worker | ||
spec: | ||
containers: | ||
- name: worker | ||
image: gcr.io/zeebe-io/worker:zeebe | ||
imagePullPolicy: Always | ||
env: | ||
- name: JAVA_OPTIONS | ||
value: >- | ||
-Dapp.brokerUrl=zeebe-service:26500 | ||
-Dzeebe.client.requestTimeout=62000 | ||
-Dapp.worker.capacity=10 | ||
-Dapp.worker.pollingDelay=1ms | ||
-Dapp.worker.completionDelay=50ms | ||
-XX:+HeapDumpOnOutOfMemoryError | ||
- name: LOG_LEVEL | ||
value: "debug" | ||
resources: | ||
limits: | ||
cpu: 4 | ||
memory: 2Gi | ||
requests: | ||
cpu: 1 | ||
memory: 512Mi |