Provision Nextcloud PostgreSQL with CloudNativePG
This commit is contained in:
1 parent
44fedbbef2
commit
9396dce44b
8 files changed
+85
No files matched your search
@@ -0,0 +1,18 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: nextcloud-cnpg
|
||||
namespace: nextcloud
|
||||
spec:
|
||||
instances: 1
|
||||
enableSuperuserAccess: true
|
||||
imageName: ghcr.io/cloudnative-pg/postgresql:17.11-standard-trixie
|
||||
bootstrap:
|
||||
initdb:
|
||||
database: nextcloud
|
||||
owner: nextcloud
|
||||
secret:
|
||||
name: nextcloud-cnpg-bootstrap
|
||||
storage:
|
||||
size: 8Gi
|
||||
storageClass: rook-ceph-block
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- cluster.yaml
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- service.yaml
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nextcloud-postgresql
|
||||
namespace: nextcloud
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: postgresql
|
||||
port: 5432
|
||||
protocol: TCP
|
||||
targetPort: 5432
|
||||
selector:
|
||||
cnpg.io/cluster: nextcloud-cnpg
|
||||
cnpg.io/instanceRole: primary
|
||||
Reference in new issue
Block a user