diff --git a/apps/minecraft-postgresql/values.yaml b/apps/minecraft-postgresql/values.yaml new file mode 100644 index 0000000..029c22e --- /dev/null +++ b/apps/minecraft-postgresql/values.yaml @@ -0,0 +1,18 @@ +fullnameOverride: paper-postgresql + +auth: + username: minecraft + database: minecraft + existingSecret: paper-postgres + secretKeys: + adminPasswordKey: postgres-password + userPasswordKey: database-password + +primary: + persistence: + storageClass: rook-ceph-block-ec + size: 8Gi + persistentVolumeClaimRetentionPolicy: + enabled: true + whenDeleted: Retain + whenScaled: Retain diff --git a/bootstrap/bitnami-helm-repo.yaml b/bootstrap/bitnami-helm-repo.yaml new file mode 100644 index 0000000..f9aa2a4 --- /dev/null +++ b/bootstrap/bitnami-helm-repo.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Secret +metadata: + name: bitnami-helm + namespace: argocd + labels: + argocd.argoproj.io/secret-type: repository +stringData: + type: helm + name: bitnami + url: registry-1.docker.io/bitnamicharts + enableOCI: "true" diff --git a/bootstrap/kustomization.yaml b/bootstrap/kustomization.yaml index ebcf573..5a0b7be 100644 --- a/bootstrap/kustomization.yaml +++ b/bootstrap/kustomization.yaml @@ -71,6 +71,8 @@ resources: - minecraft-project.yaml - minecraft-paper.yaml - minecraft-atm10.yaml +- bitnami-helm-repo.yaml +- minecraft-postgresql.yaml - quay-project.yaml - quay.yaml - nextcloud-project.yaml diff --git a/bootstrap/minecraft-paper.yaml b/bootstrap/minecraft-paper.yaml index 2573f05..12c1fb0 100644 --- a/bootstrap/minecraft-paper.yaml +++ b/bootstrap/minecraft-paper.yaml @@ -19,9 +19,5 @@ spec: server: https://kubernetes.default.svc namespace: mcserver syncPolicy: - automated: - enabled: true - prune: false - selfHeal: true syncOptions: - CreateNamespace=true diff --git a/bootstrap/minecraft-postgresql.yaml b/bootstrap/minecraft-postgresql.yaml new file mode 100644 index 0000000..90dfb03 --- /dev/null +++ b/bootstrap/minecraft-postgresql.yaml @@ -0,0 +1,27 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: minecraft-postgresql + namespace: argocd +spec: + project: minecraft + sources: + - repoURL: registry-1.docker.io/bitnamicharts + chart: postgresql + targetRevision: 18.12.4 + helm: + releaseName: paper + valueFiles: [$values/apps/minecraft-postgresql/values.yaml] + - repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git + targetRevision: main + ref: values + destination: + server: https://kubernetes.default.svc + namespace: mcserver + syncPolicy: + automated: + enabled: true + prune: false + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/bootstrap/minecraft-project.yaml b/bootstrap/minecraft-project.yaml index 7bf0930..d32fd3b 100644 --- a/bootstrap/minecraft-project.yaml +++ b/bootstrap/minecraft-project.yaml @@ -10,6 +10,7 @@ spec: sourceRepos: - https://brunner.ninja/charts - https://code.brunner.ninja/feedc0de/homelab-gitops.git + - registry-1.docker.io/bitnamicharts destinations: - namespace: atm10 server: https://kubernetes.default.svc