add kfk
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-12-08 00:22:29 +10:00
parent 908a8ee9ae
commit 5a1ed6c0c9
3 changed files with 20 additions and 48 deletions

View File

@ -1,28 +0,0 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: my-tcp-gateway
labels:
color: coral
spec:
gatewayClassName: cilium
# addresses:
# - value: "0.0.0.0"
# - type: IPAddress
# value: 192.168.0.105
# - type: IPAddress
# value: 10.0.10.251
listeners:
- protocol: TCP
port: 11180
name: tcp-gw
# allowedRoutes:
# namespaces:
# from: All
allowedRoutes:
#kinds:
#- group: gateway.networking.k8s.io/v1alpha2
# kind: TCPRoute
namespaces:
from: All

View File

@ -0,0 +1,20 @@
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: http-kafka
namespace: kafka
spec:
hostnames:
- kafka.guaranteedstruggle.host
parentRefs:
- name: my-gateway
namespace: default
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: kafka
port: 9092

View File

@ -1,20 +0,0 @@
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: TCPRoute
metadata:
name: tcp-kafka
namespace: kafka
spec:
#hostnames:
#- kafka.guaranteedstruggle.host
parentRefs:
- name: my-tcp-gateway
namespace: default
rules:
- backendRefs:
- name: kafka
port: 9092
#matches:
#- path:
# type: PathPrefix
# value: /