From e214adc17c53c52ccc07194e1a49b89e59a6a3d4 Mon Sep 17 00:00:00 2001 From: u1 Date: Tue, 6 Jan 2026 00:20:19 +0000 Subject: [PATCH] feat(staging): add pgadmin (clusterip + pvc) --- kustomize/overlays/staging/pgadmin.yaml | 74 +++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 kustomize/overlays/staging/pgadmin.yaml diff --git a/kustomize/overlays/staging/pgadmin.yaml b/kustomize/overlays/staging/pgadmin.yaml new file mode 100644 index 0000000..8391414 --- /dev/null +++ b/kustomize/overlays/staging/pgadmin.yaml @@ -0,0 +1,74 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: pgadmin-data + annotations: + argocd.argoproj.io/sync-wave: "1" +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi + storageClassName: local-path +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pgadmin + annotations: + argocd.argoproj.io/sync-wave: "1" +spec: + replicas: 1 + selector: + matchLabels: + app: pgadmin + template: + metadata: + labels: + app: pgadmin + spec: + containers: + - name: pgadmin + image: dpage/pgadmin4:8 + imagePullPolicy: IfNotPresent + ports: + - name: http + containerPort: 80 + envFrom: + - secretRef: + name: trade-pgadmin + volumeMounts: + - name: data + mountPath: /var/lib/pgadmin + readinessProbe: + tcpSocket: + port: http + initialDelaySeconds: 10 + periodSeconds: 10 + timeoutSeconds: 3 + livenessProbe: + tcpSocket: + port: http + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 3 + volumes: + - name: data + persistentVolumeClaim: + claimName: pgadmin-data +--- +apiVersion: v1 +kind: Service +metadata: + name: pgadmin + annotations: + argocd.argoproj.io/sync-wave: "1" +spec: + type: ClusterIP + ports: + - name: http + port: 80 + targetPort: http + selector: + app: pgadmin