From f26cde4fe4be5750edbcc684ffe29a0c9cfe8ef0 Mon Sep 17 00:00:00 2001 From: Angular2guy Date: Tue, 13 Aug 2024 20:16:24 +0200 Subject: [PATCH] fix: kafka setup --- .../templates/kubTemplate.yaml | 13 +++++++++++++ helm/moviemanagerwithkafka/values.yaml | 1 + 2 files changed, 14 insertions(+) diff --git a/helm/moviemanagerwithkafka/templates/kubTemplate.yaml b/helm/moviemanagerwithkafka/templates/kubTemplate.yaml index 7f9dc15..ce44b48 100644 --- a/helm/moviemanagerwithkafka/templates/kubTemplate.yaml +++ b/helm/moviemanagerwithkafka/templates/kubTemplate.yaml @@ -158,6 +158,19 @@ spec: selector: app: {{ .Values.kafkaName }} --- +apiVersion: v1 +kind: Service +metadata: + name: {{ .Values.kafkaControllerServiceName }} + labels: + app: {{ .Values.kafkaControllerServiceName }} +spec: + ports: + - port: 9093 + protocol: TCP + selector: + app: {{ .Values.kafkaName }} +--- apiVersion: apps/v1 kind: Deployment metadata: diff --git a/helm/moviemanagerwithkafka/values.yaml b/helm/moviemanagerwithkafka/values.yaml index fbe94bb..6580a77 100644 --- a/helm/moviemanagerwithkafka/values.yaml +++ b/helm/moviemanagerwithkafka/values.yaml @@ -18,6 +18,7 @@ kafkaImageVersion: latest zookeeperImageName: bitnami/zookeeper zookeeperImageVersion: latest kafkaServiceName: kafkaservice +kafkaControllerServiceName: kafkacontrollerservice zookeeperServiceName: zookeeperservice secret: