-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from zeebe-io/ck-saas-support
Introduce SaaS support for benchmarks
- Loading branch information
Showing
11 changed files
with
470 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- if and .Values.saas.enabled (not .Values.saas.credentials.existingSecret) }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "zeebe-benchmark.credentials-name" .}} | ||
type: Opaque | ||
stringData: | ||
clientId: {{ .Values.saas.credentials.clientId }} | ||
clientSecret: {{ .Values.saas.credentials.clientSecret }} | ||
zeebeAddress: {{ .Values.saas.credentials.zeebeAddress }} | ||
authServer: {{ .Values.saas.credentials.authServer }} | ||
{{- end }} |
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
12 changes: 12 additions & 0 deletions
12
charts/zeebe-benchmark/test/golden/golden-credentials-credentials.golden.yaml
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,12 @@ | ||
--- | ||
# Source: zeebe-benchmark/templates/credentials.yaml | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: benchmark-test-credentials | ||
type: Opaque | ||
stringData: | ||
clientId: clientId | ||
clientSecret: clientSecret | ||
zeebeAddress: zeebeAddress | ||
authServer: authServer |
72 changes: 72 additions & 0 deletions
72
charts/zeebe-benchmark/test/golden/golden-credentials-starter.golden.yaml
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,72 @@ | ||
--- | ||
# Source: zeebe-benchmark/templates/starter.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: starter | ||
labels: | ||
app: starter | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: starter | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: starter | ||
app.kubernetes.io/component: zeebe-client | ||
spec: | ||
containers: | ||
- name: starter | ||
image: "gcr.io/zeebe-io/starter:SNAPSHOT" | ||
imagePullPolicy: Always | ||
env: | ||
- name: JDK_JAVA_OPTIONS | ||
value: >- | ||
-Dconfig.override_with_env_vars=true | ||
-Dapp.tls=true | ||
-Dapp.starter.rate=150 | ||
-Dapp.starter.durationLimit=0 | ||
-Dzeebe.client.requestTimeout=62000 | ||
-Dapp.starter.processId="benchmark" | ||
-Dapp.starter.bpmnXmlPath="bpmn/one_task.bpmn" | ||
-Dapp.starter.businessKey="businessKey" | ||
-Dapp.starter.payloadPath="bpmn/big_payload.json" | ||
-XX:+HeapDumpOnOutOfMemoryError | ||
- name: LOG_LEVEL | ||
value: "WARN" | ||
- name: ZEEBE_ADDRESS | ||
valueFrom: | ||
secretKeyRef: | ||
name: benchmark-test-credentials | ||
key: zeebeAddress | ||
- name: ZEEBE_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: benchmark-test-credentials | ||
key: clientId | ||
- name: ZEEBE_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: benchmark-test-credentials | ||
key: clientSecret | ||
- name: ZEEBE_AUTHORIZATION_SERVER_URL | ||
valueFrom: | ||
secretKeyRef: | ||
name: benchmark-test-credentials | ||
key: authServer | ||
envFrom: | ||
- configMapRef: | ||
name: starter-config | ||
optional: true | ||
resources: | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
requests: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 9600 | ||
name: "http" |
69 changes: 69 additions & 0 deletions
69
charts/zeebe-benchmark/test/golden/golden-credentials-workers.golden.yaml
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,69 @@ | ||
--- | ||
# Source: zeebe-benchmark/templates/workers.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: benchmark-worker | ||
labels: | ||
app: benchmark-worker | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: benchmark-worker | ||
replicas: 3 | ||
template: | ||
metadata: | ||
labels: | ||
app: benchmark-worker | ||
app.kubernetes.io/component: zeebe-client | ||
spec: | ||
containers: | ||
- name: benchmark-worker | ||
image: "gcr.io/zeebe-io/worker:SNAPSHOT" | ||
imagePullPolicy: Always | ||
env: | ||
- name: JDK_JAVA_OPTIONS | ||
value: >- | ||
-Dconfig.override_with_env_vars=true | ||
-Dapp.tls=true | ||
-Dzeebe.client.requestTimeout=62000 | ||
-Dapp.worker.capacity=60 | ||
-Dapp.worker.pollingDelay=1ms | ||
-Dapp.worker.completionDelay=50ms | ||
-Dapp.worker.workerName="benchmark" | ||
-Dapp.worker.jobType="benchmark-task" | ||
-Dapp.worker.payloadPath="bpmn/big_payload.json" | ||
-Dapp.worker.completionDelay=50ms | ||
-XX:+HeapDumpOnOutOfMemoryError | ||
- name: LOG_LEVEL | ||
value: "WARN" | ||
- name: ZEEBE_ADDRESS | ||
valueFrom: | ||
secretKeyRef: | ||
name: benchmark-test-credentials | ||
key: zeebeAddress | ||
- name: ZEEBE_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: benchmark-test-credentials | ||
key: clientId | ||
- name: ZEEBE_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: benchmark-test-credentials | ||
key: clientSecret | ||
- name: ZEEBE_AUTHORIZATION_SERVER_URL | ||
valueFrom: | ||
secretKeyRef: | ||
name: benchmark-test-credentials | ||
key: authServer | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 256Mi | ||
requests: | ||
cpu: 500m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 9600 | ||
name: "http" |
72 changes: 72 additions & 0 deletions
72
charts/zeebe-benchmark/test/golden/golden-existing-credential-secret-starter.golden.yaml
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,72 @@ | ||
--- | ||
# Source: zeebe-benchmark/templates/starter.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: starter | ||
labels: | ||
app: starter | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: starter | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: starter | ||
app.kubernetes.io/component: zeebe-client | ||
spec: | ||
containers: | ||
- name: starter | ||
image: "gcr.io/zeebe-io/starter:SNAPSHOT" | ||
imagePullPolicy: Always | ||
env: | ||
- name: JDK_JAVA_OPTIONS | ||
value: >- | ||
-Dconfig.override_with_env_vars=true | ||
-Dapp.tls=true | ||
-Dapp.starter.rate=150 | ||
-Dapp.starter.durationLimit=0 | ||
-Dzeebe.client.requestTimeout=62000 | ||
-Dapp.starter.processId="benchmark" | ||
-Dapp.starter.bpmnXmlPath="bpmn/one_task.bpmn" | ||
-Dapp.starter.businessKey="businessKey" | ||
-Dapp.starter.payloadPath="bpmn/big_payload.json" | ||
-XX:+HeapDumpOnOutOfMemoryError | ||
- name: LOG_LEVEL | ||
value: "WARN" | ||
- name: ZEEBE_ADDRESS | ||
valueFrom: | ||
secretKeyRef: | ||
name: secret-name | ||
key: zeebeAddress | ||
- name: ZEEBE_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: secret-name | ||
key: clientId | ||
- name: ZEEBE_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: secret-name | ||
key: clientSecret | ||
- name: ZEEBE_AUTHORIZATION_SERVER_URL | ||
valueFrom: | ||
secretKeyRef: | ||
name: secret-name | ||
key: authServer | ||
envFrom: | ||
- configMapRef: | ||
name: starter-config | ||
optional: true | ||
resources: | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
requests: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 9600 | ||
name: "http" |
Oops, something went wrong.