Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create secret for kafka binder with binder specific properties. #6003

Draft
wants to merge 2 commits into
base: 2.11.x
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/deploy/k8s/deploy-scdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ kubectl apply --namespace "$NS" -f "$YAML_PATH/server-config.yaml"


kubectl create --namespace "$NS" clusterrolebinding scdftestrole --clusterrole cluster-admin --user=system:serviceaccount:default:scdf-sa

kubectl apply --namespace "$NS" -f "$YAML_PATH/skipper-config-$BROKER.yaml"
kubectl apply --namespace "$NS" -f "$YAML_PATH/${BROKER}-default-binder.yaml"
kubectl apply --namespace "$NS" -f "$YAML_PATH/skipper-config.yaml"
cat "$YAML_PATH/skipper-deployment.yaml" | envsubst '$DATAFLOW_VERSION,$SKIPPER_VERSION,$DATABASE' | kubectl create --namespace "$NS" -f -
kubectl create --namespace "$NS" -f "$YAML_PATH/skipper-svc.yaml"

Expand Down
8 changes: 8 additions & 0 deletions src/deploy/k8s/yaml/rabbit-default-binder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Secret
metadata:
name: default-binder
type: Opaque
stringData:
spring.cloud.stream.rabbit.binder.nodes[0]: 'rabbitmq:5672'

4 changes: 2 additions & 2 deletions src/deploy/k8s/yaml/server-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data:
enabled: false
maven:
remoteRepositories:
sprinklerRepo:
sprinklerRepo:
url: https://maven.pkg.github.com/corneil/sprinkler-demos
username: 'corneil'
password: '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'
Expand All @@ -32,7 +32,7 @@ data:
imagePullSecret: registry-key
containerSecurityContext:
runAsUser:
dataflow:
dataflow:
metrics.dashboard:
url: 'http://localhost:3000'
task:
Expand Down
48 changes: 0 additions & 48 deletions src/deploy/k8s/yaml/skipper-config-kafka.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ data:
kubernetes:
accounts:
default:
secretRefs: [ default-binder ]
imagePullPolicy: IfNotPresent
imagePullSecret:
-name: registry-key
environmentVariables: 'JAVA_TOOL_OPTIONS=-XX:ActiveProcessorCount=-1,LANG=en_US.utf8,LC_ALL=en_US.utf8,JDK_JAVA_OPTIONS=-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8,SPRING_CLOUD_CONFIG_ENABLED=false,SPRING_RABBITMQ_HOST=${RABBITMQ_SERVICE_HOST},SPRING_RABBITMQ_PORT=${RABBITMQ_SERVICE_PORT}'
- name: registry-key
environmentVariables: 'JAVA_TOOL_OPTIONS=-XX:ActiveProcessorCount=-1,LANG=en_US.utf8,LC_ALL=en_US.utf8,JDK_JAVA_OPTIONS=-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8,SPRING_CLOUD_CONFIG_ENABLED=false'
request:
memory: 1024Mi
cpu: 1500m
Expand Down
Loading