Files
auricom-home-cluster/kubernetes/apps/default/pgadmin/app/helmrelease.yaml

91 lines
2.4 KiB
YAML

---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: &app pgadmin
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 2.4.0
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
controllers:
main:
type: statefulset
annotations:
reloader.stakater.com/auto: "true"
initContainers:
volume-permissions:
image:
repository: dpage/pgadmin4
tag: "8.1@sha256:79388691706e7b4c3f1e4d567a594ade467d4cab4ecf1a97aaa0beb5b19b5b53"
command: ["/bin/chown", "-R", "5050:5050", "/var/lib/pgadmin"]
volumeMounts:
- name: config
mountPath: /var/lib/pgadmin
securityContext:
runAsUser: 0
containers:
main:
image:
repository: dpage/pgadmin4
tag: "8.1@sha256:79388691706e7b4c3f1e4d567a594ade467d4cab4ecf1a97aaa0beb5b19b5b53"
env:
PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION: "False"
envFrom:
- secretRef:
name: pgadmin-secret
resources:
requests:
cpu: 50m
memory: 100Mi
limits:
memory: 500Mi
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 1Gi
storageClass: rook-ceph-block
globalMounts:
- path: /var/lib/pgadmin
service:
main:
ports:
http:
port: 80
ingress:
main:
enabled: true
cClassName: "nginx"
annotations:
hajimari.io/icon: mdi:database
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
service:
name: main
port: http
tls:
- hosts:
- *host