⬆️ pgadmin app-template v2

This commit is contained in:
auricom
2023-11-02 21:17:22 +01:00
parent 977c89eca2
commit d8dba05dc2
4 changed files with 46 additions and 53 deletions

View File

@@ -10,7 +10,7 @@ spec:
chart: chart:
spec: spec:
chart: app-template chart: app-template
version: 1.5.1 version: 2.0.3
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: bjw-s name: bjw-s
@@ -27,26 +27,46 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
controller: controllers:
annotations: main:
reloader.stakater.com/auto: "true" type: statefulset
image: annotations:
repository: dpage/pgadmin4 reloader.stakater.com/auto: "true"
tag: "7.8" initContainers:
env: volume-permissions:
PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION: "False" image:
envFrom: repository: dpage/pgadmin4
- secretRef: tag: "7.8"
name: pgadmin-secret command: ["/bin/chown", "-R", "5050:5050", "/var/lib/pgadmin"]
initContainers: volumeMounts:
volume-permissions: - name: config
image: dpage/pgadmin4:7.8 mountPath: /var/lib/pgadmin
command: ["/bin/chown", "-R", "5050:5050", "/var/lib/pgadmin"] securityContext:
volumeMounts: runAsUser: 0
- name: config containers:
mountPath: /var/lib/pgadmin main:
securityContext: image:
runAsUser: 0 repository: dpage/pgadmin4
tag: "7.8"
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: service:
main: main:
ports: ports:
@@ -55,25 +75,16 @@ spec:
ingress: ingress:
main: main:
enabled: true enabled: true
ingressClassName: "nginx" cClassName: "nginx"
annotations: annotations:
hajimari.io/icon: mdi:database hajimari.io/icon: mdi:database
hosts: hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" - host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix service:
name: main
port: http
tls: tls:
- hosts: - hosts:
- *host - *host
persistence:
config:
enabled: true
existingClaim: pgadmin-config
mountPath: /var/lib/pgadmin
resources:
requests:
cpu: 50m
memory: 100Mi
limits:
memory: 500Mi

View File

@@ -8,4 +8,3 @@ resources:
- ./gatus.yaml - ./gatus.yaml
- ./helmrelease.yaml - ./helmrelease.yaml
- ./volsync.yaml - ./volsync.yaml
- ./volume.yaml

View File

@@ -30,7 +30,7 @@ metadata:
name: pgadmin name: pgadmin
namespace: default namespace: default
spec: spec:
sourcePVC: pgadmin-config sourcePVC: config-pgadmin-0
trigger: trigger:
schedule: "0 7 * * *" schedule: "0 7 * * *"
restic: restic:

View File

@@ -1,17 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pgadmin-config
namespace: default
labels:
app.kubernetes.io/name: &name pgadmin
app.kubernetes.io/instance: *name
snapshot.home.arpa/enabled: "true"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 1Gi