apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: jwt-secrets-ingress
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.com/jwt-key: "jwt-secrets-key"
    nginx.com/jwt-realm: "JWT Secrets App"
    nginx.com/jwt-token: "$cookie_auth_token"
    nginx.com/jwt-login-url: "https://login.jwt-secrets.example.com"
spec:
  rules:
  - host: "jwt-secrets.example.com"
    http:
      paths:
      - path: /backend2
        pathType: Prefix
        backend:
          service:
            name: backend2-svc
            port:
              number: 80
      - path: /backend1
        pathType: Prefix
        backend:
          service:
            name: backend1-svc
            port:
              number: 80
