From efc26369aed84e6cde364d83482885edc3d3d2b3 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Fri, 7 Apr 2023 01:17:53 -0400 Subject: [PATCH] Add pgadmin4 --- .../database/postgresql/kustomization.yaml | 3 +- .../postgresql/pgadmin4/helm-release.yaml | 28 +++++++++++++++++++ .../postgresql/pgadmin4/helm-repository.yaml | 8 ++++++ .../postgresql/pgadmin4/kustomization.yaml | 5 ++++ 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 cluster/apps/database/postgresql/pgadmin4/helm-release.yaml create mode 100644 cluster/apps/database/postgresql/pgadmin4/helm-repository.yaml create mode 100644 cluster/apps/database/postgresql/pgadmin4/kustomization.yaml diff --git a/cluster/apps/database/postgresql/kustomization.yaml b/cluster/apps/database/postgresql/kustomization.yaml index f07d21b..a42facf 100644 --- a/cluster/apps/database/postgresql/kustomization.yaml +++ b/cluster/apps/database/postgresql/kustomization.yaml @@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./pgsql.sops.yaml -- ./helm-release.yaml \ No newline at end of file +- ./helm-release.yaml +- ./pgadmin4 \ No newline at end of file diff --git a/cluster/apps/database/postgresql/pgadmin4/helm-release.yaml b/cluster/apps/database/postgresql/pgadmin4/helm-release.yaml new file mode 100644 index 0000000..5c73a53 --- /dev/null +++ b/cluster/apps/database/postgresql/pgadmin4/helm-release.yaml @@ -0,0 +1,28 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: pgadmin4 + namespace: database + labels: + needsDatabase: "yes" +spec: + interval: 5m + chart: + spec: + chart: pgadmin4 + version: 1.14.x + sourceRef: + kind: HelmRepository + name: runix-charts + namespace: flux-system + values: + ingress: + enabled: true + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-production" + traefik.ingress.kubernetes.io/router.entrypoints: websecure + hosts: + - host: k3spga.***REMOVED*** + paths: + - path: "/" + pathType: Prefix \ No newline at end of file diff --git a/cluster/apps/database/postgresql/pgadmin4/helm-repository.yaml b/cluster/apps/database/postgresql/pgadmin4/helm-repository.yaml new file mode 100644 index 0000000..18eaa65 --- /dev/null +++ b/cluster/apps/database/postgresql/pgadmin4/helm-repository.yaml @@ -0,0 +1,8 @@ +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: HelmRepository +metadata: + name: runix-charts + namespace: flux-system +spec: + interval: 1m + url: https://helm.runix.net diff --git a/cluster/apps/database/postgresql/pgadmin4/kustomization.yaml b/cluster/apps/database/postgresql/pgadmin4/kustomization.yaml new file mode 100644 index 0000000..14a2c31 --- /dev/null +++ b/cluster/apps/database/postgresql/pgadmin4/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ./helm-repository.yaml +- ./helm-release.yaml \ No newline at end of file