This GruCloud module allows to deploy the Crunchy Data Postgres Operator
The offical k8s manifest is downloaded, the k8s-manifest2code generates the GruCloud code from that manifest.
npm i @grucloud/module-k8s-crunchy-postgres
In your iac.js file, import the package:
const PostgresOperator = require("@grucloud/module-k8s-crunchy-postgres");
Invoke the createResources function with a K8sProvider instance
const postgresOperatorResources = await PostgresOperator.createResources({
provider,
});
Have a look at the example
Modify the manifest version from the download-manifest scripts sections of the package.json.
Run the download-manifest
npm script:
npm run download-manifest
Run the k8s-manifest2code to generate the new resource.js:
npm run gen-code
Ready for testing ? Go to the example