fix: make dex an app-of-apps to manage resources sensibly

This commit is contained in:
Jonas Juselius
2024-02-01 08:48:53 +01:00
parent 633f397e27
commit 87da274c8f
7 changed files with 30 additions and 1 deletions
+64
View File
@@ -0,0 +1,64 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
annotations:
linkerd.io/inject: disabled
name: dexdb
spec:
enableSuperuserAccess: true
instances: 2
logLevel: info
# bootstrap:
# initdb:
# database: archivistdb
# owner: archivist
# secret:
# name: archivistdb-secret
storage:
pvcTemplate:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: managed-nfs-storage
volumeMode: Filesystem
resizeInUseVolumes: true
size: 1Gi
# superuserSecret:
# name: dexdb-secret
# ---
# apiVersion: v1
# data:
# # phei2beiRei0
# password: cGhlaTJiZWlSZWkwCg==
# username: YXJjaGl2aXN0Cg==
# kind: Secret
# metadata:
# name: archivistdb-secret
# type: kubernetes.io/basic-auth
# ---
# apiVersion: v1
# data:
# password: ZW4gdG8gdHJlIGZpcmUK
# kind: Secret
# metadata:
# name: dexdb-secret
# type: kubernetes.io/basic-auth
---
apiVersion: v1
kind: Service
metadata:
name: dexdb-nodeport
spec:
ports:
- name: psql
nodePort: 30432
port: 5432
protocol: TCP
targetPort: 5432
selector:
cnpg.io/cluster: dexdb
cnpg.io/instanceName: dexdb-1
sessionAffinity: None
type: NodePort