Add Cloud Native PG
This commit is contained in:
@@ -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
|
||||||
@@ -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
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user