apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: oauth2-proxy-ingress
  annotations:
    kubernetes.io/ingress.class: nginx
    cert-manager.io/issuer: "letsencrypt-prod"
spec:
  tls:
  - hosts:
    - <your DNS prefix>.<your azure region>.cloudapp.azure.com
    secretName: tls-secret
  rules:
  - host: <your DNS prefix>.<your azure region>.cloudapp.azure.com
    http:
      paths:
      - path: /oauth2
        pathType: Prefix
        backend:
          service:
            name: oauth2-proxy
            port: 
              number: 4180
