Skip to content

Commit

Permalink
improve deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetancollaud committed Feb 5, 2024
1 parent dc14cd0 commit 5a3f3ad
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
2 changes: 2 additions & 0 deletions deployment/kafka-cost-control/base/aggregator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ spec:
env:
- name: QUARKUS_KAFKA_STREAMS_STATE_DIR
value: /home/jboss/kafka-stream/data/
- name: QUARKUS_PROFILE
value: "ccloud"
envFrom:
- secretRef:
name: kafka-cost-control-secret
Expand Down
37 changes: 17 additions & 20 deletions deployment/kafka-cost-control/base/kafka-connect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,49 +57,46 @@ spec:
- name: CONNECT_VALUE_CONVERTER
value: org.apache.kafka.connect.json.JsonConverter

# Connect username and password
- name: CLUSTER_API_KEY
valueFrom:
secretKeyRef:
name: kafka-cost-control-secret
key: CLUSTER_API_KEY
- name: CLUSTER_API_SECRET
valueFrom:
secretKeyRef:
name: kafka-cost-control-secret
key: CLUSTER_API_KEY

# Connect main connection
- name: CONNECT_BOOTSTRAP_SERVERS
valueFrom:
secretKeyRef:
name: kafka-cost-control-secret
key: KAFKA_BOOTSTRAP_SERVERS
- name: CONNECT_SASL_JAAS_CONFIG
valueFrom:
secretKeyRef:
name: kafka-cost-control-secret
key: KAFKA_SASL_JAAS_CONFIG
value: org.apache.kafka.common.security.plain.PlainLoginModule required username='${CLUSTER_API_KEY}' password='${CLUSTER_API_SECRET}';
- name: CONNECT_SECURITY_PROTOCOL
value: SASL_SSL
- name: CONNECT_SASL_MECHANISM
value: PLAIN

# Connect consumer connection
- name: CONNECT_CONSUMER_BOOTSTRAP_SERVERS
valueFrom:
secretKeyRef:
name: kafka-cost-control-secret
key: KAFKA_BOOTSTRAP_SERVERS
value: ${CONNECT_BOOTSTRAP_SERVERS}
- name: CONNECT_CONSUMER_SASL_JAAS_CONFIG
valueFrom:
secretKeyRef:
name: kafka-cost-control-secret
key: KAFKA_SASL_JAAS_CONFIG
value: ${CONNECT_SASL_JAAS_CONFIG}
- name: CONNECT_CONSUMER_SECURITY_PROTOCOL
value: SASL_SSL
- name: CONNECT_CONSUMER_SASL_MECHANISM
value: PLAIN

# Connect producer connection
- name: CONNECT_PRODUCER_BOOTSTRAP_SERVERS
valueFrom:
secretKeyRef:
name: kafka-cost-control-secret
key: KAFKA_BOOTSTRAP_SERVERS
value: ${CONNECT_BOOTSTRAP_SERVERS}
- name: CONNECT_PRODUCER_SASL_JAAS_CONFIG
valueFrom:
secretKeyRef:
name: kafka-cost-control-secret
key: KAFKA_SASL_JAAS_CONFIG
value: ${CONNECT_SASL_JAAS_CONFIG}
- name: CONNECT_PRODUCER_SECURITY_PROTOCOL
value: SASL_SSL
- name: CONNECT_PRODUCER_SASL_MECHANISM
Expand Down
2 changes: 1 addition & 1 deletion deployment/kafka-cost-control/dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kind: Kustomization
resources:
- ../base

namespace: kafka-cost-control
namespace: kafka-cost-control-dev

patches:
- path: aggregator.yaml
Expand Down

0 comments on commit 5a3f3ad

Please sign in to comment.