Official KubeSail Template

Secret / postgres-pass
PersistentVolumeClaim / postgres-pvc
100 MB
Deployment / postgres
1 replica
Service / postgres
Port 5432 TCP

Required Environment Variables

Launches a PostgreSQL database and attaches a disk (PersistentVolumeClaim) for persistent storage! The database can be accessed by other pods in this namespace at postgres:5432.

Thanks to @aspic for the contributions!