<p>I deployed a Ingress without certificate</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: api-dev-ingress
spec:
  ingressClassName: nginx
  rules:
    - host: api.dev
      http:
        paths:
          - pathType: Prefix
            path: /
            backend:
              service:
                name: api-service-staging
                port:
                  number: 80

</code></pre>
<p>It worked smoothly but without TLS.</p>
<p>Then, I installed cert-manager by Helm</p>
<p><code>helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version v1.8.2 --set installCRDs=true</code></p>
<p>And deployed a certificate just like below:</p>
<pre><code>apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-prod
spec:
  acme:
    server: https://acme-v02.api.letsencrypt.org/directory

    email: email@email.com

    privateKeySecretRef:
      name: letsencrypt-prod

    solvers:
      - http01:
          ingress:
            class: nginx
</code></pre>
<p>and then redeployed the NGINX ingress with the tls attribute:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    acme.cert-manager.io/http01-edit-in-place: &quot;true&quot;
  name: api-dev-ingress
spec:
  tls:
    - hosts:
        - api.dev
      secretName: letsencrypt-prod
  ingressClassName: nginx
  rules:
    - host: api.dev
      http:
        paths:
          - pathType: Prefix
            path: /
            backend:
              service:
                name: api-service-staging
                port:
                  number: 80

</code></pre>
<p>Now I have my certificated ingress but the problem is that it's redirecting all requests to GET. I have a POST endpoint and when I run it, it's saying that it's not working.</p>
<p><a href="https://i.stack.imgur.com/Yf7zq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Yf7zq.png" alt="not working" /></a></p>
<p>The log stats for ingress pod is this:</p>
<pre><code>10.106.0.3 - - [12/Jul/2022:13:17:17 +0000] &quot;POST /auth/login HTTP/1.1&quot; 301 169 &quot;-&quot; &quot;PostmanRuntime/7.29.0&quot; &quot;-&quot;
10.106.0.3 - - [12/Jul/2022:13:17:17 +0000] &quot;GET /auth/login HTTP/1.1&quot; 404 73 &quot;http://api.dev/auth/login&quot; &quot;PostmanRuntime/7.29.0&quot; &quot;-&quot; 
</code></pre>
<p>So maybe it's something related to this 301 redirect. Maybe it should be 308 but I'm not sure.</p>
<p>Does anyone have an idea what I can do?</p>

carlosza
<p>I resolved this question marking this option on Postman<a href="https://i.stack.imgur.com/ybP8P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ybP8P.png" alt="postman answer" /></a></p>
<p>But I still don't know why.</p>
