My domain is: api.johnny-luu.com
Hi guys, i'm using K8s with Nginx Ingress and Cert Manager, and it's having the error above with the challenge:
Waiting for HTTP-01 challenge propagation: wrong status code '503', expected '200'
I've use letsdebug.net to check my domain, but it says OK. Therefore i don't know what is causing the error
This is my setup for Issuer:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt
namespace: cert-manager
spec:
acme:
email: johnnyluu.dev@gmail.com
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-account-private-key
solvers:
- http01:
ingress:
ingressClassName: nginx
And my Ingress file:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: simple-bank-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt
spec:
ingressClassName: nginx
rules:
- host: 'api.johnny-luu.com'
http:
paths:
- pathType: Prefix
path: '/'
backend:
service:
name: simple-bank-api-service
port:
number: 80
tls:
- hosts:
- api.johnny-luu.com
secretName: simple-bank-api-cert
Thanks you guys so much