From 5d9fad10dec8df7a7486ffc541146e056b612fa7 Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Thu, 7 Dec 2023 20:32:32 +1000 Subject: [PATCH] add kfk --- manifests/00-system-stuff/gateway.yaml | 7 +++++-- manifests/04-routes/tcproute-kafka.yaml | 18 +++++++++--------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/manifests/00-system-stuff/gateway.yaml b/manifests/00-system-stuff/gateway.yaml index 384fa79..05a3642 100644 --- a/manifests/00-system-stuff/gateway.yaml +++ b/manifests/00-system-stuff/gateway.yaml @@ -23,6 +23,9 @@ spec: - protocol: TCP port: 80 name: tcp-gw + # allowedRoutes: + # namespaces: + # from: All allowedRoutes: - namespaces: - from: All + kinds: + - kind: TCPRoute diff --git a/manifests/04-routes/tcproute-kafka.yaml b/manifests/04-routes/tcproute-kafka.yaml index 9544094..0fa3104 100644 --- a/manifests/04-routes/tcproute-kafka.yaml +++ b/manifests/04-routes/tcproute-kafka.yaml @@ -1,20 +1,20 @@ --- -apiVersion: gateway.networking.k8s.io/v1beta1 +apiVersion: gateway.networking.k8s.io/v1alpha2 kind: TCPRoute metadata: name: tcp-kafka namespace: kafka spec: - hostnames: - - kafka.guaranteedstruggle.host + #hostnames: + #- kafka.guaranteedstruggle.host parentRefs: - name: my-gateway namespace: default rules: - - matches: - - path: - type: PathPrefix - value: / - backendRefs: - - name: kafka-service + - backendRefs: + - name: kafka port: 9092 + #matches: + #- path: + # type: PathPrefix + # value: /