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