---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: phippy-api-canary
  annotations:
    # Enable canary and send 10% of traffic to version 2
    nginx.ingress.kubernetes.io/canary: "true"
    nginx.ingress.kubernetes.io/canary-weight: "10"
spec:
  rules:
  - host: phippy-api.clusterx.qedzone.ro
    http:
      paths:
      - path: /
        pathType: "Prefix"
        backend:
          service:
            name: phippy-api-v2
            port:
              number: 80
