--- # yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json apiVersion: helm.toolkit.fluxcd.io/v2beta2 kind: HelmRelease metadata: name: &app pgadmin namespace: default spec: interval: 30m chart: spec: chart: app-template version: 3.1.0 sourceRef: kind: HelmRepository name: bjw-s namespace: flux-system maxHistory: 2 install: createNamespace: true remediation: retries: 3 upgrade: cleanupOnFail: true remediation: strategy: rollback retries: 3 uninstall: keepHistory: false values: controllers: pgadmin: annotations: reloader.stakater.com/auto: "true" initContainers: volume-permissions: image: repository: dpage/pgadmin4 tag: 8.5@sha256:00998d19a230b66e30de4bc00a2c453b07c63016dc15e58d6f6b4fa3c688d4e5 command: [/bin/chown, -R, 5050:5050, /var/lib/pgadmin] securityContext: runAsUser: 0 containers: app: image: repository: dpage/pgadmin4 tag: 8.5@sha256:00998d19a230b66e30de4bc00a2c453b07c63016dc15e58d6f6b4fa3c688d4e5 env: PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION: "False" envFrom: - secretRef: name: pgadmin-secret resources: requests: cpu: 50m memory: 100Mi limits: memory: 500Mi service: app: controller: *app ports: http: port: 80 ingress: app: enabled: true className: nginx annotations: hajimari.io/icon: mdi:database hosts: - host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" paths: - path: / service: identifier: app port: http tls: - hosts: - *host persistence: config: enabled: true existingClaim: *app globalMounts: - path: /var/lib/pgadmin