Skip to content

Instantly share code, notes, and snippets.

@kazshinohara
Created December 15, 2021 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazshinohara/05fd3f9873d7f297dec475f271d85ac5 to your computer and use it in GitHub Desktop.
Save kazshinohara/05fd3f9873d7f297dec475f271d85ac5 to your computer and use it in GitHub Desktop.
kind: HTTPRoute
apiVersion: networking.x-k8s.io/v1alpha1
metadata:
name: internal-httproute-split
labels:
gateway: internal-gateway
spec:
hostnames:
- "i-gw.gcpx.org"
rules:
- forwardTo:
- serviceName: whereami-v1
port: 8080
weight: 40
- serviceName: whereami-v2
port: 8080
weight: 30
- serviceName: whereami-v3
port: 8080
weight: 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment