- Create Namespace
kubectl create namespace postgres-server
- Create Persistent storage PVC
kubectl apply -f pvc.yml
- Create the configuration
kubectl create configmap postgres-config --from-file=main-config=postgresql.conf -n postgres-server
- Create Deployment
kubectl apply -f .
You can check if everything is okay by running
kubectl get svc -n postgres-server