generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #808 from shaneutt/shaneutt/update-tcp-guide-v1alpha2
docs: update tcp guide for v1alpha2
- Loading branch information
Showing
2 changed files
with
91 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: gateway.networking.k8s.io/v1alpha2 | ||
kind: Gateway | ||
metadata: | ||
name: my-tcp-gateway | ||
spec: | ||
gatewayClassName: my-tcp-gateway-class | ||
listeners: | ||
- name: foo | ||
protocol: TCP | ||
port: 8080 | ||
routes: | ||
kinds: | ||
- kind: TCPRoute | ||
- name: bar | ||
protocol: TCP | ||
port: 8090 | ||
routes: | ||
kinds: | ||
- kind: TCPRoute | ||
--- | ||
apiVersion: gateway.networking.k8s.io/v1alpha2 | ||
kind: TCPRoute | ||
metadata: | ||
name: tcp-app-1 | ||
spec: | ||
parentRefs: | ||
- name: my-tcp-gateway | ||
sectionName: foo | ||
rules: | ||
- backendRefs: | ||
- name: my-foo-service | ||
port: 6000 | ||
--- | ||
apiVersion: gateway.networking.k8s.io/v1alpha2 | ||
kind: TCPRoute | ||
metadata: | ||
name: tcp-app-2 | ||
spec: | ||
parentRefs: | ||
- name: my-tcp-gateway | ||
sectionName: bar | ||
rules: | ||
- backendRefs: | ||
- name: my-bar-service | ||
port: 6000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters