GruCloud Module for the Kubernetes Crunchy Data Postgres Operator
npm install @grucloud/module-k8s-crunchy-postgresThis 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.
``sh`
npm i @grucloud/module-k8s-crunchy-postgres
In your _iac.js_ file, import the package:
`js`
const PostgresOperator = require("@grucloud/module-k8s-crunchy-postgres");
Invoke the _createResources_ function with a K8sProvider instance
`js`
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:
`sh`
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