Add CloudNativePG for Asciinema
This commit is contained in:
1 parent
11e6369738
commit
ea4da21b72
6 files changed
+46
No files matched your search
@@ -0,0 +1,17 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: asciinema-postgresql
|
||||
namespace: asciinema
|
||||
spec:
|
||||
instances: 1
|
||||
imageName: ghcr.io/cloudnative-pg/postgresql:18.6-standard-trixie
|
||||
bootstrap:
|
||||
initdb:
|
||||
database: asciinema
|
||||
owner: asciinema
|
||||
secret:
|
||||
name: asciinema-postgresql-bootstrap
|
||||
storage:
|
||||
size: 8Gi
|
||||
storageClass: rook-ceph-block-ec
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- cluster.yaml
|
||||
@@ -35,6 +35,7 @@ ingress:
|
||||
host: asciinema.brunner.ninja
|
||||
|
||||
postgresql:
|
||||
enabled: false
|
||||
persistence:
|
||||
storageClass: rook-ceph-block-ec
|
||||
size: 8Gi
|
||||
@@ -0,0 +1,21 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: asciinema-postgresql
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "-1"
|
||||
spec:
|
||||
project: asciinema
|
||||
source:
|
||||
repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
|
||||
targetRevision: main
|
||||
path: apps/asciinema-postgresql
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: asciinema
|
||||
syncPolicy:
|
||||
automated:
|
||||
enabled: true
|
||||
prune: false
|
||||
selfHeal: true
|
||||
@@ -28,5 +28,7 @@ spec:
|
||||
kind: Job
|
||||
- group: ceph.rook.io
|
||||
kind: CephObjectStoreUser
|
||||
- group: postgresql.cnpg.io
|
||||
kind: Cluster
|
||||
- group: networking.k8s.io
|
||||
kind: Ingress
|
||||
@@ -31,6 +31,7 @@ resources:
|
||||
- authentik-project.yaml
|
||||
- authentik.yaml
|
||||
- asciinema-project.yaml
|
||||
- asciinema-postgresql.yaml
|
||||
- asciinema.yaml
|
||||
- brave-sync-project.yaml
|
||||
- cert-manager-project.yaml
|
||||
|
||||
Reference in new issue
Block a user