apiVersion: gateway.networking.k8s.io/v1alpha2
kind: TCPRoute
metadata:
name: destination-port-matching-example
spec:
parentRefs:
- name: my-mesh
group: example.io
kind: Mesh
port: 8000
rules:
- backendRefs:
- name: my-service
port: 8080
PortRouting
This code creates a TCPRoute object called destination-port-matching-example with the following fields:
metadata: name: destination-port-matching-example
spec: parentRefs:
- name: my-mesh group: example.
Shortcut: tcp.routeyml
0 Comments
Add Comment
Log in to add a comment