apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: http-svc
  namespace: echo-canary
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/canary: "true"
    nginx.ingress.kubernetes.io/canary-by-header: "env"
    nginx.ingress.kubernetes.io/canary-by-header-pattern: "canary"
spec:
  rules:
  - http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: http-svc
            port: 
              number: 80
