Skip to content

Instantly share code, notes, and snippets.

@mimiz
Created August 9, 2020 08:45
Show Gist options
  • Save mimiz/015f4d1389dc08e5832d4fbbd5ac34be to your computer and use it in GitHub Desktop.
Save mimiz/015f4d1389dc08e5832d4fbbd5ac34be to your computer and use it in GitHub Desktop.
configmap-scdf-server.medium
apiVersion: v1
kind: ConfigMap
metadata:
name: scdf-server
labels:
app: scdf-server
data:
application.yaml: |-
spring:
cloud:
dataflow:
applicationProperties:
stream:
spring:
cloud:
azure:
eventhub:
# this is the "default" binders as it is needed by
# The Azure Event Hub Binder
connection-string: BINDER_ENDPOINT_CONNECTION_STRING
checkpoint-storage-account: BINDER_STORAGE_ACCOUNT
checkpoint-access-key: BINDER_STORAGE_ACCOUNT_ACCESS_KEY
checkpoint-container: BINDER_STORAGE_ACCOUNT_CONTAINER
stream:
# create other binders if needed
binders:
binder-one:
type: eventhub
defaultCandidate: false
environment:
spring:
cloud:
azure:
eventhub:
connection-string: BINDER_ONE_ENDPOINT_CONNECTION_STRING
checkpoint-storage-account: BINDER_ONE_STORAGE_ACCOUNT
checkpoint-access-key: BINDER_ONE_STORAGE_ACCOUNT_ACCESS_KEY
checkpoint-container: BINDER_ONE_STORAGE_ACCOUNT_CONTAINER
binder-two:
type: eventhub
defaultCandidate: false
environment:
spring:
cloud:
azure:
eventhub:
connection-string: BINDER_TWO_ENDPOINT_CONNECTION_STRING
checkpoint-storage-account: BINDER_TWO_STORAGE_ACCOUNT
checkpoint-access-key: BINDER_TWO_STORAGE_ACCOUNT_ACCESS_KEY
checkpoint-container: BINDER_TWO_STORAGE_ACCOUNT_CONTAINER
datasource:
url: jdbc:sqlserver:
username: your_username
password: your_password
driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
testOnBorrow: true
validationQuery: "SELECT 1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment