mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
⬆️ pgadmin app-template v2
This commit is contained in:
@@ -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,9 +27,24 @@ spec:
|
|||||||
uninstall:
|
uninstall:
|
||||||
keepHistory: false
|
keepHistory: false
|
||||||
values:
|
values:
|
||||||
controller:
|
controllers:
|
||||||
|
main:
|
||||||
|
type: statefulset
|
||||||
annotations:
|
annotations:
|
||||||
reloader.stakater.com/auto: "true"
|
reloader.stakater.com/auto: "true"
|
||||||
|
initContainers:
|
||||||
|
volume-permissions:
|
||||||
|
image:
|
||||||
|
repository: dpage/pgadmin4
|
||||||
|
tag: "7.8"
|
||||||
|
command: ["/bin/chown", "-R", "5050:5050", "/var/lib/pgadmin"]
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /var/lib/pgadmin
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
image:
|
image:
|
||||||
repository: dpage/pgadmin4
|
repository: dpage/pgadmin4
|
||||||
tag: "7.8"
|
tag: "7.8"
|
||||||
@@ -38,15 +53,20 @@ spec:
|
|||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: pgadmin-secret
|
name: pgadmin-secret
|
||||||
initContainers:
|
resources:
|
||||||
volume-permissions:
|
requests:
|
||||||
image: dpage/pgadmin4:7.8
|
cpu: 50m
|
||||||
command: ["/bin/chown", "-R", "5050:5050", "/var/lib/pgadmin"]
|
memory: 100Mi
|
||||||
volumeMounts:
|
limits:
|
||||||
|
memory: 500Mi
|
||||||
|
statefulset:
|
||||||
|
volumeClaimTemplates:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /var/lib/pgadmin
|
accessMode: ReadWriteOnce
|
||||||
securityContext:
|
size: 1Gi
|
||||||
runAsUser: 0
|
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
|
|
||||||
|
@@ -8,4 +8,3 @@ resources:
|
|||||||
- ./gatus.yaml
|
- ./gatus.yaml
|
||||||
- ./helmrelease.yaml
|
- ./helmrelease.yaml
|
||||||
- ./volsync.yaml
|
- ./volsync.yaml
|
||||||
- ./volume.yaml
|
|
||||||
|
@@ -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:
|
||||||
|
@@ -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
|
|
Reference in New Issue
Block a user