Created
October 25, 2018 12:03
-
-
Save tasdikrahman/3530864c41969cc4d10c7571461c1975 to your computer and use it in GitHub Desktop.
traefik service weights example v1.7.0
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
# this feature is available only from traefik version 1.7.0 and upwards | |
# https://github.com/containous/traefik/releases/tag/v1.7.0 | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
annotations: | |
kubernetes.io/ingress.class: traefik-external | |
traefik.ingress.kubernetes.io/service-weights: | | |
myapp: 90% | |
myapp-canary: 10% | |
name: myapp-ingress | |
namespace: myapp | |
spec: | |
rules: | |
- host: myapp.example.com | |
http: | |
paths: | |
- backend: | |
serviceName: myapp | |
servicePort: 80 | |
path: / | |
- backend: | |
serviceName: myapp-canary | |
servicePort: 80 | |
path: / | |
status: | |
loadBalancer: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment