Hi,
As part of my work I am trying to figure out a way of integrating cert-manager with some sites that span across multiple Kubernetes clusters, in particular one Kubernetes cluster A is the active site, and another Kubernetes cluster B is the passive site.
I have cert-manager installed and configured with the same Let's Encrypt account on both sides, we have a domain, let's call it "domain.for.customer.example.com". I requested a certificate for that domain 9 days ago by creating a certificate object in Kubernetes A, and the request was fulfilled successfully, we got the cert, everything was fine.
Now today a surprising thing happened (hopefully I can get more information here) when I was trying to figure out how to import the certificate objects and secrets from the active Kubernetes side to the passive Kubernetes side (B).
First I dumped the certificate object on the active site A, and I basically did kubectl apply -f certificate.yaml, remember the domain is pointing only to the active side, not the passive side, so my expectation was that the request would never be fulfilled, yet somehow cert-manager managed to get a new certificate/key (I checked both certs they are different, both are valid).
How is this even possible? Shouldn't LE contact the IP my domain is pointing to and try to fetch domain/.well-know/acme/token first before we can fetch the certificate from LE? Is the domain associated with my Let's Encrypt account somehow and as a short of optimization the validation is skipped (As in contacting http://domain/.well-known/acme/token) ?.
Thank you in advance.
PS: Not sure if this is the right section for the post, if not feel free to move it to the right one.