KubePods
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

Rotate cluster's certificates

docker exec -it [id] k3s certificate rotate

Reload master node container

docker restart [id]

Verification

Try to reach the database again

	kubectl port-forward svc/[db-svc] 5433:5432

On this page