Files
home-argocd/archive/apps-postgres.yaml
2024-03-18 20:25:08 +11:00

106 lines
2.7 KiB
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: apps-postgres
namespace: argocd
spec:
project: default
source:
chart: postgresql
repoURL: https://charts.bitnami.com/bitnami
path: postgresql
targetRevision: 11.9.13
helm:
releaseName: apps-postgres
# valueFiles: ['postgres-values.yaml']
values: |
auth:
username: junv
existingSecret: app-postgres-credentials
database: junv-db
postgresqlDatabase: home
architecture: replication
global:
storageClass: nfs-client
postgresql:
auth:
username: junv
existingSecret: app-postgres-credentials
database: junv-db
volumePermissions:
enabled: true
securityContext:
fsGroup: 1000
runAsUser: 1000
metrics:
enabled: true
extraEnvVars:
- name: PG_EXPORTER_AUTO_DISCOVER_DATABASES
value: "true"
- name: DATA_SOURCE_NAME
valueFrom:
secretKeyRef:
name: postgresql-data-source-name
key: DATA_SOURCE_NAME
serviceMonitor:
enabled: true
namespace: db
selector:
app.kubernetes.io/instance: apps-postgres
app.kubernetes.io/name: postgresql
app.kubernetes.io/component: primary
customLivenessProbe:
exec:
command:
- telnet
- localhost
- 5432
initialDelaySeconds: 15
periodSeconds: 5
timeoutSeconds: 5
successThreshold: 2
failureThreshold: 6
customRreadinessProbe:
exec:
command:
- telnet
- localhost
- 5432
initialDelaySeconds: 15
periodSeconds: 5
timeoutSeconds: 5
successThreshold: 2
failureThreshold: 6
primary:
labels:
role: primary
service:
type: ClusterIP
nodePort:
postgresql: 32222
terminationGracePeriodSeconds: 5
resources:
requests:
memory: 400Mi
cpu: 250m
persistence:
storageClass: nfs-client
size: 10Gi
readReplicas:
replicaCount: 1
persistence:
enabled: true
storageClass: nfs-client
size: 10Gi
destination:
server: https://kubernetes.default.svc
namespace: db
syncPolicy:
automated:
prune: true
selfHeal: true