Skip to content

Instantly share code, notes, and snippets.

@xujihui1985
Last active May 13, 2019 08:56
Show Gist options
  • Save xujihui1985/81d8db6a24c82243926e45d0a9d1d77d to your computer and use it in GitHub Desktop.
Save xujihui1985/81d8db6a24c82243926e45d0a9d1d77d to your computer and use it in GitHub Desktop.
ingress controller traffic split
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