Demonstrates running a simple standalone PostgreSQL server.
This example also demonstrates how to use the ConfigMap construct and volume mounts to make use of Postgres' initialization scripts.
In order to synthesize the example to Kubernetes YAML, you need to run the following command:
npx cdk8s synthThis will produce dist/app.k8s.yaml file which you can then apply to your cluster:
kubectl apply -f dist/app.k8s.yamlYou can run the tests with the following command:
npm test -- examples/postgres