This is a guide to how you can connect to PostgreSQL from Microk8s pods. I will be using Ubuntu server 20.04, Postgres 12 and mircok8s version 1.18.4. Install Get Microk8s using snap: snap install microk8s --classic Get PostgreSQL using apt: sudo apt install postgresql postgresql-contrib Configure Before we can connect to the PostgreSQL instance we need to start a cluster and enable some addons, and configure postgres to listen for connections from Microk8s.