---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-with-auth-tls-secret
  namespace: default
  annotations:
    nginx.ingress.kubernetes.io/auth-tls-secret: "default/ca-secret"

spec:
  ingressClassName: nginx
  tls:
    - hosts:
        - auth-tls-secret.localhost
    - secretName: whoami-tls
  rules:
    - host: auth-tls-secret.localhost
      http:
        paths:
          - path: /
            pathType: Exact
            backend:
              service:
                name: whoami
                port:
                  number: 80
