From b145d5b4c6d8dcc8c771e448a3edf3f94c7f7a02 Mon Sep 17 00:00:00 2001 From: Brian Bischoff Date: Tue, 8 Oct 2024 13:50:22 +0100 Subject: [PATCH] fix: Added example deployment config --- README.md | 9 ++++ services/example-flowcore-deployment.yaml | 61 +++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 services/example-flowcore-deployment.yaml diff --git a/README.md b/README.md index 9e54253..a95549f 100644 --- a/README.md +++ b/README.md @@ -49,3 +49,12 @@ bun dev # Run tests bun test ``` + +## Deployment + +Copy the ./services/example-flowcore-deployment.yaml file to ./services/flowcore-deployment.yaml and edit the file to +match your environment. + +```bash +flowcore scenario apply -f services/flowcore-deployment.yaml +``` diff --git a/services/example-flowcore-deployment.yaml b/services/example-flowcore-deployment.yaml new file mode 100644 index 0000000..9dddf18 --- /dev/null +++ b/services/example-flowcore-deployment.yaml @@ -0,0 +1,61 @@ +tenant: my-tenant +scenario: + description: 'Scenario description' + name: my-scenario + transformers: + my-transformer: + size: "SMALL" + concurrency: 1 + shell: flowcoreio/adapter-nodejs-transformer-shell:2.7.4-bun + blueprint: + entrypoint: index.js + runtime: bun + artifactUrl: >- + https://github.com/flowcore-io/generic-kafka-forward/releases/download/v1.1.1/generic-kafka-forward-1.1.1.zip + processTimeout: 30000 # 5 seconds + dataCore: my-datacore + processingTimeout: 30000 # 5 seconds + description: Push the data to confluent + events: + - event.0 + flowType: flowtype.0 + parameters: + - name: LOG_LEVEL + type: manual + value: "debug" + - name: KAFKA_SASL_MECHANISM + type: manual + value: plain + - name: KAFKA_SSL + type: manual + value: 'true' + - name: KAFKAJS_NO_PARTITIONER_WARNING + type: manual + value: '1' + - name: KAFKA_GROUP_ID + type: manual + value: group-id + - name: KAFKA_CLIENT_ID + type: manual + value: flowcore-transformer + - name: KAFKA_KEY_PATH + type: manual + value: path.to.key + - name: KAFKA_IGNORE_EMPTY_KEY + type: manual + value: 'true' + - name: KAFKA_ADD_FLOWCORE_HEADERS + type: manual + value: 'true' + - name: KAFKA_USERNAME + type: variable + value: my-variable + - name: KAFKA_PASSWORD + type: secret + value: my-secret + - name: KAFKA_TOPIC + type: manual + value: incoming-messages + - name: KAFKA_BROKER + type: variable + value: my-broker-variable-name