Created
January 18, 2023 13:43
-
-
Save alevz257/2e9c1419b53d0d79438db7e02f7e7421 to your computer and use it in GitHub Desktop.
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
apiVersion: gateway.networking.k8s.io/v1beta1 | |
kind: Gateway | |
metadata: | |
name: my-gateway | |
spec: | |
gatewayClassName: gke-l7-global-external-managed | |
listeners: | |
- name: http | |
protocol: HTTP | |
port: 80 | |
allowedRoutes: | |
kinds: | |
- kind: HTTPRoute | |
--- | |
apiVersion: gateway.networking.k8s.io/v1beta1 | |
kind: HTTPRoute | |
metadata: | |
name: my-route | |
spec: | |
parentRefs: | |
- name: my-gateway | |
hostnames: | |
- alevz.info | |
rules: | |
- backendRefs: | |
- name: frontend | |
port: 80 | |
weight: 90 | |
- name: frontend2 | |
port: 80 | |
weight: 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment