Files
auricom-home-cluster/kubernetes/apps/default/pgadmin/app/helmrelease.yaml
2024-05-16 04:58:13 +02:00

85 lines
2.1 KiB
YAML

---
# 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"
pod:
securityContext:
runAsUser: 5050 # ${APP_UID}
runAsGroup: 5050 # ${APP_GID}
fsGroup: 5050 # ${APP_GID}
fsGroupChangePolicy: OnRootMismatch
containers:
app:
image:
repository: dpage/pgadmin4
tag: 8.6@sha256:701f221dfc5da1fb3d4095ad4264ebb00ef4f7ecc6573007a49a59740019703d
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