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