From 51cf3c7f33a06f13c6fc1145419db23801e4d7c5 Mon Sep 17 00:00:00 2001 From: devantler Date: Tue, 22 Aug 2023 01:09:48 +0200 Subject: [PATCH] Added timescale-db repo and namespace --- k8s/infrastructure/base/timescale-db/kustomization.yaml | 6 ++++++ k8s/infrastructure/base/timescale-db/namespace.yaml | 4 ++++ k8s/infrastructure/base/timescale-db/repository.yaml | 8 ++++++++ .../overlays/development/kustomization.yaml | 1 + k8s/infrastructure/overlays/production/kustomization.yaml | 1 + 5 files changed, 20 insertions(+) create mode 100644 k8s/infrastructure/base/timescale-db/kustomization.yaml create mode 100644 k8s/infrastructure/base/timescale-db/namespace.yaml create mode 100644 k8s/infrastructure/base/timescale-db/repository.yaml diff --git a/k8s/infrastructure/base/timescale-db/kustomization.yaml b/k8s/infrastructure/base/timescale-db/kustomization.yaml new file mode 100644 index 00000000..12496451 --- /dev/null +++ b/k8s/infrastructure/base/timescale-db/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - namespace.yaml + # - release.yaml + - repository.yaml diff --git a/k8s/infrastructure/base/timescale-db/namespace.yaml b/k8s/infrastructure/base/timescale-db/namespace.yaml new file mode 100644 index 00000000..1d0240c1 --- /dev/null +++ b/k8s/infrastructure/base/timescale-db/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: timescale-db \ No newline at end of file diff --git a/k8s/infrastructure/base/timescale-db/repository.yaml b/k8s/infrastructure/base/timescale-db/repository.yaml new file mode 100644 index 00000000..82d2050c --- /dev/null +++ b/k8s/infrastructure/base/timescale-db/repository.yaml @@ -0,0 +1,8 @@ +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: HelmRepository +metadata: + name: timescale-db + namespace: timescale-db +spec: + interval: 1m + url: https://charts.timescale.com diff --git a/k8s/infrastructure/overlays/development/kustomization.yaml b/k8s/infrastructure/overlays/development/kustomization.yaml index 6b8b5197..de0a4ff6 100644 --- a/k8s/infrastructure/overlays/development/kustomization.yaml +++ b/k8s/infrastructure/overlays/development/kustomization.yaml @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../../base/cert-manager + - ../../base/timescale-db - ../../base/traefik-ingress patches: diff --git a/k8s/infrastructure/overlays/production/kustomization.yaml b/k8s/infrastructure/overlays/production/kustomization.yaml index 6b8b5197..de0a4ff6 100644 --- a/k8s/infrastructure/overlays/production/kustomization.yaml +++ b/k8s/infrastructure/overlays/production/kustomization.yaml @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../../base/cert-manager + - ../../base/timescale-db - ../../base/traefik-ingress patches: