Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
itadventurer committed Jun 24, 2024
1 parent be3bebd commit 6c353d9
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
6 changes: 3 additions & 3 deletions kubernetes/acls/csp1_consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
host: "*"
- resource:
type: topic
name: csp1.transactions
name: csp1-transactions
patternType: literal
operations:
- Read
Expand Down Expand Up @@ -72,7 +72,7 @@ spec:
volumes:
- name: user-certs
secret:
secretName: csp1.consumer
secretName: csp-consumer
- name: cluster-certs
secret:
secretName: kafka-cluster-ca-cert
Expand All @@ -87,7 +87,7 @@ metadata:
data:
app.properties: |
bootstrap.servers=kafka-kafka-bootstrap:9093
topic=csp1.transactions
topic=csp-transactions
group.id=csp1_consumer
app.log.infos=true
client.id=csp1_consumer
Expand Down
10 changes: 5 additions & 5 deletions kubernetes/acls/csp1_producer.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaUser
metadata:
name: csp1.producer
name: csp-producer
labels:
strimzi.io/cluster: kafka
spec:
Expand All @@ -12,7 +12,7 @@ spec:
acls:
- resource:
type: topic
name: csp1.transactions
name: csp-transactions
patternType: literal
operations:
- Write
Expand Down Expand Up @@ -58,7 +58,7 @@ spec:
- name: KAFKA_SSL_KEYSTORE_PASSWORD
valueFrom:
secretKeyRef:
name: csp1.producer
name: csp-producer
key: user.password
- name: KAFKA_SSL_TRUSTSTORE_PASSWORD
valueFrom:
Expand All @@ -68,7 +68,7 @@ spec:
volumes:
- name: user-certs
secret:
secretName: csp1.producer
secretName: csp-producer
- name: cluster-certs
secret:
secretName: kafka-cluster-ca-cert
Expand All @@ -83,7 +83,7 @@ metadata:
data:
app.properties: |
bootstrap.servers=kafka-kafka-bootstrap:9093
topic=csp1.transactions
topic=csp-transactions
producer.msgs.per.sec=1
app.log.infos=true
client.id=csp1_producer
Expand Down
12 changes: 6 additions & 6 deletions kubernetes/acls/csp1_transformer.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaUser
metadata:
name: csp1.transformer
name: csp-transformer
labels:
strimzi.io/cluster: kafka
spec:
Expand All @@ -12,13 +12,13 @@ spec:
acls:
- resource:
type: group
name: csp1.transformer
name: csp-transformer
patternType: literal
operation: Read
host: "*"
- resource:
type: topic
name: csp1.transactions
name: csp-transactions
patternType: literal
operations:
- Read
Expand Down Expand Up @@ -76,7 +76,7 @@ spec:
- name: KAFKA_SSL_KEYSTORE_PASSWORD
valueFrom:
secretKeyRef:
name: csp1.producer
name: csp-producer
key: user.password
- name: KAFKA_SSL_TRUSTSTORE_PASSWORD
valueFrom:
Expand All @@ -86,7 +86,7 @@ spec:
volumes:
- name: user-certs
secret:
secretName: csp1.producer
secretName: csp-producer
- name: cluster-certs
secret:
secretName: kafka-cluster-ca-cert
Expand All @@ -101,7 +101,7 @@ metadata:
data:
app.properties: |
bootstrap.servers=kafka-kafka-bootstrap:9093
csp1.topic=csp1.transactions
csp1.topic=csp1-transactions
output.topic=transactions
group.id=csp1_transformer
transactional.id=transactions-transformer-app
Expand Down
10 changes: 5 additions & 5 deletions kubernetes/acls/csp2_producer.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaUser
metadata:
name: csp2.producer
name: csp-producer
labels:
strimzi.io/cluster: kafka
spec:
Expand All @@ -12,7 +12,7 @@ spec:
acls:
- resource:
type: topic
name: csp2.transactions
name: csp-transactions
patternType: literal
operations:
- Write
Expand Down Expand Up @@ -56,7 +56,7 @@ spec:
- name: KAFKA_SSL_KEYSTORE_PASSWORD
valueFrom:
secretKeyRef:
name: csp2.producer
name: csp-producer
key: user.password
- name: KAFKA_SSL_TRUSTSTORE_PASSWORD
valueFrom:
Expand All @@ -66,7 +66,7 @@ spec:
volumes:
- name: user-certs
secret:
secretName: csp2.producer
secretName: csp-producer
- name: cluster-certs
secret:
secretName: kafka-cluster-ca-cert
Expand All @@ -81,7 +81,7 @@ metadata:
data:
app.properties: |
bootstrap.servers=kafka-kafka-bootstrap:9093
topic=csp2.transactions
topic=csp-transactions
producer.batch_interval.s=10
producer.msgs_per_batch=100
app.log.infos=true
Expand Down
14 changes: 7 additions & 7 deletions kubernetes/acls/csp2_transformer.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaUser
metadata:
name: csp2.transformer
name: csp-transformer
labels:
strimzi.io/cluster: kafka
spec:
Expand All @@ -12,7 +12,7 @@ spec:
acls:
- resource:
type: group
name: csp2.transformer
name: csp-transformer
patternType: literal
operation: Read
host: "*"
Expand Down Expand Up @@ -69,7 +69,7 @@ spec:
- name: KAFKA_SSL_KEYSTORE_PASSWORD
valueFrom:
secretKeyRef:
name: csp2.transformer
name: csp-transformer
key: user.password
- name: KAFKA_SSL_TRUSTSTORE_PASSWORD
valueFrom:
Expand All @@ -79,7 +79,7 @@ spec:
volumes:
- name: user-certs
secret:
secretName: csp2.transformer
secretName: csp-transformer
- name: cluster-certs
secret:
secretName: kafka-cluster-ca-cert
Expand All @@ -95,9 +95,9 @@ data:
app.properties: |
bootstrap.servers=kafka-kafka-bootstrap:9093
application.id=csp2-transformer2
csp2.transactions.topic=csp2.transactions
csp2.customer_id_mapping.topic=csp2.customer.id.mapping
csp2.chargingstation_id_mapping.topic=csp2.chargingstation.id.mapping
csp2.transactions.topic=csp-transactions
csp2.customer_id_mapping.topic=csp-customer.id.mapping
csp2.chargingstation_id_mapping.topic=csp-chargingstation.id.mapping
output.topic=transactions
processing.time.ms=100
app.log.infos=true
Expand Down

0 comments on commit 6c353d9

Please sign in to comment.