--- # 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/v2 kind: HelmRelease metadata: name: &app pgadmin namespace: default spec: interval: 30m chart: spec: chart: app-template version: 3.2.1 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" pod: securityContext: runAsUser: 5050 # ${APP_UID} runAsGroup: 5050 # ${APP_GID} fsGroup: 5050 # ${APP_GID} fsGroupChangePolicy: OnRootMismatch containers: app: image: repository: dpage/pgadmin4 tag: 8.8@sha256:61fd25f428c155027fb2aa74b913d317af11a14f55e6135484b5e86a8840520b 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_EXTERNAL_DOMAIN}" paths: - path: / service: identifier: app port: http tls: - hosts: - *host persistence: config: enabled: true existingClaim: *app globalMounts: - path: /var/lib/pgadmin