apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: configchecker-ingress
  annotations:
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
    cert-manager.io/acme-challenge-type: http01
    cert-manager.io/cluster-issuer: letsencrypt-prod
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  tls:
  - hosts:
      - configchecker.k8s.svc.docaposte.cloud
    secretName: secret-tls   
  rules:
  - host: configchecker.k8s.svc.docaposte.cloud 
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: configcheckerapp-svc
            port:
              number: 8181
