RunbooksIncidents
Databases certificate error
Can't reach the databases because of expired certificates
Symptoms
- Error when trying to reach a database: "error dialing backend: tls [...]"
Prerequisites
- A K3d cluster running KubePods
- Databases up and running
Process
Find cluster's master node container id
docker ps | grep serverRotate cluster's certificates
docker exec -it [id] k3s certificate rotateReload master node container
docker restart [id]Verification
Try to reach the database again
kubectl port-forward svc/[db-svc] 5433:5432