convert to app template

This commit is contained in:
2024-06-23 17:50:35 -05:00
parent ccbb7f8e79
commit 8b9cdbec2a
3 changed files with 84 additions and 52 deletions

View File

@@ -10,12 +10,13 @@ home: ""
sources: sources:
- https://github.com/pgadmin-org/pgadmin4 - https://github.com/pgadmin-org/pgadmin4
- https://hub.docker.com/r/dpage/pgadmin4/ - https://hub.docker.com/r/dpage/pgadmin4/
- https://github.com/rowanruseler/helm-charts - https://github.com/bjw-s/helm-charts/blob/main/charts/other/app-template/values.yaml
maintainers: maintainers:
- name: alexlebens - name: alexlebens
dependencies: dependencies:
- name: pgadmin4 - name: app-template
version: 1.26.0 alias: pgadmin4
repository: https://helm.runix.net repository: https://bjw-s.github.io/helm-charts/
version: 3.2.1
icon: https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/png/pgadmin.png icon: https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/png/pgadmin.png
appVersion: 8.8 appVersion: "8.8"

View File

@@ -2,13 +2,13 @@ apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret kind: ExternalSecret
metadata: metadata:
name: pgadmin-password-secret name: pgadmin-password-secret
namespace: {{ .Release.Namespace | quote }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ .Release.Name | quote }} app.kubernetes.io/name: pgadmin-password-secret
app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: web app.kubernetes.io/component: web
app.kubernetes.io/part-of: {{ .Release.Name | quote }} app.kubernetes.io/part-of: {{ .Release.Name }}
spec: spec:
secretStoreRef: secretStoreRef:
kind: ClusterSecretStore kind: ClusterSecretStore
@@ -27,13 +27,13 @@ apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret kind: ExternalSecret
metadata: metadata:
name: pgadmin-env-secret name: pgadmin-env-secret
namespace: {{ .Release.Namespace | quote }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ .Release.Name | quote }} app.kubernetes.io/name: pgadmin-env-secret
app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: web app.kubernetes.io/component: web
app.kubernetes.io/part-of: {{ .Release.Name | quote }} app.kubernetes.io/part-of: {{ .Release.Name }}
spec: spec:
secretStoreRef: secretStoreRef:
kind: ClusterSecretStore kind: ClusterSecretStore

View File

@@ -1,40 +1,71 @@
pgadmin4: pgadmin4:
image: controllers:
repository: dpage/pgadmin4 main:
tag: 8.8 type: deployment
replicas: 1
strategy: Recreate
revisionHistoryLimit: 3
containers:
main:
image:
repository: dpage/pgadmin4
tag: 8.8
pullPolicy: IfNotPresent
env:
- name: PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION
value: "False"
- name: PGADMIN_DEFAULT_EMAIL
value: alexanderlebens@gmail.com
- name: PGADMIN_DEFAULT_PASSWORD
valueFrom:
secretKeyRef:
name: pgadmin-password-secret
key: pgadmin-password
envFrom:
- secretRef:
name: pgadmin-env-secret
resources:
requests:
cpu: 100m
memory: 128Mi
serviceAccount: serviceAccount:
create: true create: true
automountServiceAccountToken: true service:
strategy: main:
type: Recreate controller: main
serverDefinitions: ports:
enabled: false http:
port: 80
targetPort: 80
protocol: TCP
ingress: ingress:
enabled: true main:
ingressClassName: traefik enabled: true
annotations: className: traefik
traefik.ingress.kubernetes.io/router.entrypoints: websecure annotations:
traefik.ingress.kubernetes.io/router.tls: "true" traefik.ingress.kubernetes.io/router.entrypoints: websecure
cert-manager.io/cluster-issuer: letsencrypt-issuer traefik.ingress.kubernetes.io/router.tls: "true"
hosts: cert-manager.io/cluster-issuer: letsencrypt-issuer
- host: pgadmin.alexlebens.net hosts:
paths: - host: pgadmin.alexlebens.net
- path: / paths:
pathType: Prefix - path: /
tls: pathType: Prefix
- secretName: pgadmin-secret-tls service:
hosts: name: pgadmin
- pgadmin.alexlebens.net port: 80
existingSecret: pgadmin-password-secret tls:
secretKeys: - secretName: pgadmin-secret-tls
pgadminPasswordKey: pgadmin-password hosts:
env: - pgadmin.alexlebens.net
email: alexanderlebens@gmail.com persistence:
envVarsFromSecrets: data:
- pgadmin-env-secret storageClass: ceph-block
persistentVolume: accessMode: ReadWriteOnce
enabled: true size: 5Gi
accessModes: retain: true
- ReadWriteOnce advancedMounts:
size: 5Gi main:
storageClass: ceph-block main:
- path: /var/lib/pgadmin
readOnly: false