Reference
CDK8S Constructs API¶
TypeScript construct APIs for CNPG deployment.
NamespaceConstruct¶
Creates the cnpg-system namespace.
new NamespaceConstruct(scope, id, {
name: "cnpg-system",
syncWave: 0
});
OperatorConstruct¶
Creates the CloudNativePG operator HelmChart.
new OperatorConstruct(scope, id, {
namespace: "cnpg-system",
version: "0.26.1",
helmRepoUrl: "https://cloudnative-pg.github.io/charts",
monitoring: {
podMonitorEnabled: false,
grafanaDashboardsEnabled: false
},
syncWave: 1
});
BarmanPluginConstruct¶
Creates the Barman Cloud Plugin HelmChart.
new BarmanPluginConstruct(scope, id, {
namespace: "cnpg-system",
version: "0.2.0",
helmRepoUrl: "https://cloudnative-pg.github.io/charts",
syncWave: 2
});