Add Cloud Native PG

This commit is contained in:
Daniel Cosme
2026-05-02 06:44:16 -04:00
parent b1a5bf1d96
commit 00da421787
4 changed files with 26 additions and 10 deletions
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
name: cnpg
namespace: cnpg-system
resources:
- namespace.yaml
- cluster-namespace.yaml
- helm-repository-source.yaml
- helm-release.yaml
- pg-cluster.yaml
- immich-db.yaml
+1
View File
@@ -6,3 +6,4 @@ resources:
- truenas-csi-driver.yaml - truenas-csi-driver.yaml
- monitoring/ - monitoring/
- longhorn/ - longhorn/
- cloud-native-pg/
@@ -4,7 +4,7 @@ metadata:
name: truenas-csi name: truenas-csi
namespace: truenas-csi namespace: truenas-csi
resources: resources:
- config.yaml
- nfs-storage-class.yaml - nfs-storage-class.yaml
- iscsi-storage-class.yaml - iscsi-storage-class.yaml
- namespace.yaml - namespace.yaml
- config.yaml
+12 -9
View File
@@ -14,13 +14,16 @@ func init() {
} }
func Stack() stack.Stack { func Stack() stack.Stack {
s := stack.NewStack("cloud-native-pg", map[string]any{ kz := kube.NewKuztomizedStack(
"namespace": SystemNamespace, meta_system,
"cluster-namespace": root.PGClusterNamespace, map[string]any{
"helm-repository-source": HelmSource(), "namespace": SystemNamespace,
"helm-release": HelmRelease(), "cluster-namespace": root.PGClusterNamespace,
"pg-cluster": Cluster(), "helm-repository-source": HelmSource(),
"immich-db": ImmichDatabase(), "helm-release": HelmRelease(),
}) "pg-cluster": Cluster(),
return s "immich-db": ImmichDatabase(),
},
)
return kz.Stack("cloud-native-pg")
} }