This commit is contained in:
parent
5ac8555851
commit
5d9fad10de
@ -23,6 +23,9 @@ spec:
|
|||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 80
|
port: 80
|
||||||
name: tcp-gw
|
name: tcp-gw
|
||||||
|
# allowedRoutes:
|
||||||
|
# namespaces:
|
||||||
|
# from: All
|
||||||
allowedRoutes:
|
allowedRoutes:
|
||||||
namespaces:
|
kinds:
|
||||||
from: All
|
- kind: TCPRoute
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
---
|
---
|
||||||
apiVersion: gateway.networking.k8s.io/v1beta1
|
apiVersion: gateway.networking.k8s.io/v1alpha2
|
||||||
kind: TCPRoute
|
kind: TCPRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: tcp-kafka
|
name: tcp-kafka
|
||||||
namespace: kafka
|
namespace: kafka
|
||||||
spec:
|
spec:
|
||||||
hostnames:
|
#hostnames:
|
||||||
- kafka.guaranteedstruggle.host
|
#- kafka.guaranteedstruggle.host
|
||||||
parentRefs:
|
parentRefs:
|
||||||
- name: my-gateway
|
- name: my-gateway
|
||||||
namespace: default
|
namespace: default
|
||||||
rules:
|
rules:
|
||||||
- matches:
|
- backendRefs:
|
||||||
- path:
|
- name: kafka
|
||||||
type: PathPrefix
|
|
||||||
value: /
|
|
||||||
backendRefs:
|
|
||||||
- name: kafka-service
|
|
||||||
port: 9092
|
port: 9092
|
||||||
|
#matches:
|
||||||
|
#- path:
|
||||||
|
# type: PathPrefix
|
||||||
|
# value: /
|
||||||
|
Loading…
Reference in New Issue
Block a user