Question: Does ClusterIssuer has cache behavior in multiple namespaces environment?
Hi,
I have question, but first here's the context:
I have 1 kubernetes cluster that consists of multiple namespaces. Each namespace is owned by a team. However all public API of teams in this kubernetes cluster are using the same domain. Example: team-a-svc-01.example.com, team-b-svc-02.example.com, etc.
Each namespace is given a dedicated Istio Ingress Gateway controller. So I, as cluster administrator, want to automate the TLS secret provisioning used by each namespace's Istio Ingress Gateway controller. So what I have to do basically to create identical Certificate in each namespace with the same wildcard domain, so that it can create tls secret in each namespace then be used by Istio Ingress Gateway in respective namespace.
For the issuer, I will use ClusterIssuer.
Now my question is, does ClusterIssuer cache the request of certificate coming from all namespaces? Given all certificate request is identical (will be using the same wildcard domain name(is it possible?))? Because I worry that this setup may consume the rate limit of Let's Encrypt.
Best, Agung
No, it does not cache - notably because the private key will be different between each namespace.
The recommended approach here is to only create a single Certificate resource, and then use a tool such as kubed to copy the resulting Secret resource to all namespaces.
Hi @munnerz thank you for the recommendation. I will close this issue as it is answered