Add Cloud Native PG
This commit is contained in:
12
infrastructure/hydra/cloud-native-pg/kustomization.yaml
Normal file
12
infrastructure/hydra/cloud-native-pg/kustomization.yaml
Normal file
@@ -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
|
||||
- monitoring/
|
||||
- longhorn/
|
||||
- cloud-native-pg/
|
||||
|
||||
@@ -4,7 +4,7 @@ metadata:
|
||||
name: truenas-csi
|
||||
namespace: truenas-csi
|
||||
resources:
|
||||
- config.yaml
|
||||
- nfs-storage-class.yaml
|
||||
- iscsi-storage-class.yaml
|
||||
- namespace.yaml
|
||||
- config.yaml
|
||||
|
||||
@@ -14,13 +14,16 @@ func init() {
|
||||
}
|
||||
|
||||
func Stack() stack.Stack {
|
||||
s := stack.NewStack("cloud-native-pg", map[string]any{
|
||||
"namespace": SystemNamespace,
|
||||
"cluster-namespace": root.PGClusterNamespace,
|
||||
"helm-repository-source": HelmSource(),
|
||||
"helm-release": HelmRelease(),
|
||||
"pg-cluster": Cluster(),
|
||||
"immich-db": ImmichDatabase(),
|
||||
})
|
||||
return s
|
||||
kz := kube.NewKuztomizedStack(
|
||||
meta_system,
|
||||
map[string]any{
|
||||
"namespace": SystemNamespace,
|
||||
"cluster-namespace": root.PGClusterNamespace,
|
||||
"helm-repository-source": HelmSource(),
|
||||
"helm-release": HelmRelease(),
|
||||
"pg-cluster": Cluster(),
|
||||
"immich-db": ImmichDatabase(),
|
||||
},
|
||||
)
|
||||
return kz.Stack("cloud-native-pg")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user