'helm cert-manager secret random character issue
I have a software with Helm. I'm running Letsencrypt here. But when I looked with kubectl get secret, I saw that random characters were generated at the end of the certName that I assigned in my yaml file, and it seems like the certificate is not working because of this. But if I do this setup outside of helm, it works without any problems.
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: test-tls
{{- end }}
kubectl get secret
test-tls-nrtx9 Opaque 3 14m
Solution 1:[1]
The random string means the cert is not yet issued. It is a temporary secret. Once cert manager was able to get the certificate, it will remove this secret and create one without the random suffix.
Check on your certificate instead. In your case, its ready field will be false, but it must be true.
kubectl get certs
I suggest checking the cert manager logs, to see why It could not issue the certificate.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | The Fool |
