This commit is contained in:
20
manifests/04-routes/httproute-kafka.yaml
Normal file
20
manifests/04-routes/httproute-kafka.yaml
Normal 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
|
||||
@@ -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: /
|
||||
Reference in New Issue
Block a user