-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] secret "mailu-certificates" not found #164
Comments
Update: I realize now that the secret should be created by CertManager by this template: helm-charts/mailu/templates/certificate.yaml Lines 1 to 22 in 787b710
I'm guessing the issue is related to CertManger being an incompatible version or using the wrong api version or something. |
this https://github.com/Mailu/helm-charts/blob/master/mailu/values.yaml#L115 has to be |
@Pumba98 yeah, my values.yml looks like this: hostnames:
- mail.example.com
- mail1.example.com
domain: mail.example.com
initialAccount:
username: jack
domain: mail.example.com
persistence:
storageClass: openebs-device
roundcube:
enabled: true
certmanager:
enabled: true
issuerType: ClusterIssuer
issuerName: letsencrypt-prod
apiVersion: cert-manager.io/v1
|
I figured out the problem – a bit of nonce is being added to the end of the certificate object name, so instead of When I look at the manifest for the secret that is created, it looks like this: metadata:
creationTimestamp: "2022-03-26T13:36:14Z"
generateName: mailu-certificates-
labels:
cert-manager.io/next-private-key: "true"
name: mailu-certificates-cmxls
namespace: mailu
ownerReferences:
- apiVersion: cert-manager.io/v1
blockOwnerDeletion: true
controller: true
kind: Certificate
name: mailu-certificates
uid: 6715b85e-4018-451f-8b8e-f51a3b451f3d
resourceVersion: "10036240"
selfLink: /api/v1/namespaces/mailu/secrets/mailu-certificates-cmxls
uid: 008022bc-d878-4c83-8a72-d07036139865 I notice that it has a |
Update: it turns out that this secret with the hash at the end of it is actually a temporary secret which is used to store information while the certificate is being issued. In my case, the certificate is not being successfully issued – I haven't figured that out yet, but it's not an issue with mailu or the helm chart. If you see something like this, inspect the CertificateRequest object, and follow that thread until figuring out why the certificate isn't being issued. I'll revise this comment when I figure out the exact problem in my case. I have a feeling it's DNS related. |
Have you figured this out yet? It happens to me and I guess it might happen to more people. If you found solution, please add a comment for others to find. |
I don't think I ever figured it out. Later, I ran into this
issue, which ultimately lead me to give up:
canonical/microk8s#3025
I think that ultimately, my ingress controller wasn't exposing Mailu to
the outside world, which means that the ACME challenge never completed,
which is why the certificates remained in a pending state.
Ultimately, if this happens to you, I think it's always *not* a problem
with Mailu. It is more likely something wonky with your
CertificateIssuer or Ingress Controller where the ACME challenge is not
completing and the certificate is not being issued. The situation I
described above are just downstream symptoms of that root issue.
|
Describe the bug
Mailu frontend pod fails to startup because it cannot mount a secret named
mailu-certificates
Environment
Microk8s, chart version 0.3.1
Additional context
I don't know where the
mailu-certificates
secret is coming from. I looked through the helm charts here and found no reference to that object in any of the manifests, so I'm a bit confused. Also, more generally, I don't see any version tags in this repository and I looked through commits a little bit and wasn't finding "version bump" commits or anything like that. I was trying to figure that out because I don't know if there is amailu-certificates
secret involved in my version of the chart, but it's since been removed. Clearly, I'm new to using helm & kubernetes, but how can I find the source for a specific version of the chart?Also, here is the full
kubectl describe
output for the troublesome pod:The text was updated successfully, but these errors were encountered: