kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
  name: ratings-web-https
  namespace: ratingsapp
  annotations:
    kubernetes.io/ingress.class: azure/application-gateway
    cert-manager.io/issuer: letsencrypt-staging
    cert-manager.io/acme-challenge-type: http01
    # kubernetes.io/ingress.allow-http: 'false'
    appgw.ingress.kubernetes.io/ssl-redirect: "true"
    acme.cert-manager.io/http01-edit-in-place: "true" #Adding this to get the staging cert to work
spec:
  tls:
    - hosts:
      - <fqdn>
      secretName: aks-tls-akv
  rules:
  - host: <fqdn>
    http:  
      paths:
      - pathType: Prefix
        path: /
        backend:
          service:
            name: ratings-web
            port: 
              number: 80