How to Renew Percona and Minio Certificates
Problem
The Minio and Percona pods are seen in CrashLoopBackOff state with errors in the pod logs as:
Environment
Platform9 Edge Cloud - v5.6 [LTS2].
Procedure
Percona certs will get auto-renewed starting SMCP 5.11.
For previous versions, follow the steps mentioned below:
The steps to be followed for the Percona certificate rotation are:
Retrieve the list of secrets in the percona namespace and verify the validity of the certificates.
Delete the Percona DB secret. (Note: No new secrets will be created at this step)
Get the list of Helm Deployments and make a note of the chart name for percona-db.
Perform the helm upgrade for Percona DB.
The deleted secrets will be recreated, and the certificates will also be renewed. Please verify this.
The steps to be followed for the Minio certificate rotation are:
Check the list of secrets in the Minio namespace and verify the certificate validity.
Restart the nodeletd stack in each master node one at a time within the Management cluster.
The stack restart is mandatory as this will refresh the CA which signs the Minio certificates.
Disable _requestAutoCert_in the minio tenant. (set requestAutoCert to false): $plugin[3qq4mela3y2]
List the minio Secrets:
Delete the existing minio certs:
List the CSRs:
Delete the minio CSR:
Enable requestAuthCert in the minio tenant. (set requestAutoCert to true)
The minio-tls and operator secret will be regenerated, which the minio pods use. Also check certificate validity.
Additional Information
Platform9 team has filed an internal jira AIR-1401 to track Minio cert issue, and jira AIR-1402 to track the Percona cert rotation issue. To know more details on the ETA for the fix and the release version, please reach out to support team mentioning the jira-ID.
