Last active
May 13, 2019 08:56
-
-
Save xujihui1985/81d8db6a24c82243926e45d0a9d1d77d to your computer and use it in GitHub Desktop.
ingress controller traffic split
This file contains hidden or 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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
annotations: | |
spanner.ingress.kubernetes.io/service-weights: | | |
revision-0001: 90% | |
revision-0002: 10% | |
name: my-app | |
spec: | |
rules: | |
- http: | |
paths: | |
- backend: | |
serviceName: revision-0001 | |
21 | |
servicePort: 80 | |
path: / | |
- backend: | |
serviceName: revision-0002 | |
servicePort: 80 | |
path: / | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment