Skip to content
Merged
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 modules/infra/airflow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1786,12 +1786,12 @@ serviceAccount:
## if a Kubernetes ServiceAccount is created
## - if `false`, you must create the service account outside this chart with name: `serviceAccount.name`
##
create: true
create: false

## the name of the ServiceAccount
## - by default the name is generated using the `airflow.serviceAccountName` template in `_helpers/common.tpl`
##
name: ""
name: airflow-worker

## annotations for the ServiceAccount
##
Expand Down
16 changes: 16 additions & 0 deletions modules/infra/kafka/gateway.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: kafka-ui-vs
namespace: kafka
spec:
hosts:
- kafka-ui.goboolean.io
gateways:
- istio-system/istio-ingressgateway
http:
- route:
- destination:
host: kafka-ui.kafka.svc.cluster.local
port:
number: 80
11 changes: 11 additions & 0 deletions modules/infra/kafka/kafka-ui-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
yamlApplicationConfig:
kafka:
clusters:
- name: yaml
bootstrapServers: kafka.kafka.svc.cluster.local:9092
auth:
type: disabled
management:
health:
ldap:
enabled: false
15 changes: 15 additions & 0 deletions modules/infra/kafka/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,18 @@ resource "helm_release" "prometheus-kafka-exporter" {

depends_on = [helm_release.kafka]
}

resource "helm_release" "kafka-ui" {
name = "kafka-ui"
chart = "kafka-ui"
namespace = "kafka"
repository = "https://provectus.github.io/kafka-ui-charts"
version = "0.7.6"

values = [file("${path.module}/kafka-ui-values.yaml")]
}

resource "kubernetes_manifest" "kafka-ui-gateway" {
manifest = yamldecode(file("${path.module}/gateway.yaml"))
depends_on = [helm_release.kafka-ui]
}