From 51cf3c7f33a06f13c6fc1145419db23801e4d7c5 Mon Sep 17 00:00:00 2001 From: devantler Date: Tue, 22 Aug 2023 01:09:48 +0200 Subject: [PATCH 1/2] 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: From c21fea0e4cee950d348b6c98ecf6a0776eefb4c9 Mon Sep 17 00:00:00 2001 From: devantler Date: Tue, 22 Aug 2023 01:12:06 +0200 Subject: [PATCH 2/2] rename timescale-db to timescaledb --- .../base/{timescale-db => timescaledb}/kustomization.yaml | 0 .../base/{timescale-db => timescaledb}/namespace.yaml | 2 +- .../base/{timescale-db => timescaledb}/repository.yaml | 4 ++-- k8s/infrastructure/overlays/development/kustomization.yaml | 2 +- k8s/infrastructure/overlays/production/kustomization.yaml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename k8s/infrastructure/base/{timescale-db => timescaledb}/kustomization.yaml (100%) rename k8s/infrastructure/base/{timescale-db => timescaledb}/namespace.yaml (67%) rename k8s/infrastructure/base/{timescale-db => timescaledb}/repository.yaml (73%) diff --git a/k8s/infrastructure/base/timescale-db/kustomization.yaml b/k8s/infrastructure/base/timescaledb/kustomization.yaml similarity index 100% rename from k8s/infrastructure/base/timescale-db/kustomization.yaml rename to k8s/infrastructure/base/timescaledb/kustomization.yaml diff --git a/k8s/infrastructure/base/timescale-db/namespace.yaml b/k8s/infrastructure/base/timescaledb/namespace.yaml similarity index 67% rename from k8s/infrastructure/base/timescale-db/namespace.yaml rename to k8s/infrastructure/base/timescaledb/namespace.yaml index 1d0240c1..0748882f 100644 --- a/k8s/infrastructure/base/timescale-db/namespace.yaml +++ b/k8s/infrastructure/base/timescaledb/namespace.yaml @@ -1,4 +1,4 @@ apiVersion: v1 kind: Namespace metadata: - name: timescale-db \ No newline at end of file + name: timescaledb \ No newline at end of file diff --git a/k8s/infrastructure/base/timescale-db/repository.yaml b/k8s/infrastructure/base/timescaledb/repository.yaml similarity index 73% rename from k8s/infrastructure/base/timescale-db/repository.yaml rename to k8s/infrastructure/base/timescaledb/repository.yaml index 82d2050c..ae6363e5 100644 --- a/k8s/infrastructure/base/timescale-db/repository.yaml +++ b/k8s/infrastructure/base/timescaledb/repository.yaml @@ -1,8 +1,8 @@ apiVersion: source.toolkit.fluxcd.io/v1beta2 kind: HelmRepository metadata: - name: timescale-db - namespace: timescale-db + name: timescaledb + namespace: timescaledb 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 de0a4ff6..8a2fbeba 100644 --- a/k8s/infrastructure/overlays/development/kustomization.yaml +++ b/k8s/infrastructure/overlays/development/kustomization.yaml @@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../../base/cert-manager - - ../../base/timescale-db + - ../../base/timescaledb - ../../base/traefik-ingress patches: diff --git a/k8s/infrastructure/overlays/production/kustomization.yaml b/k8s/infrastructure/overlays/production/kustomization.yaml index de0a4ff6..8a2fbeba 100644 --- a/k8s/infrastructure/overlays/production/kustomization.yaml +++ b/k8s/infrastructure/overlays/production/kustomization.yaml @@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../../base/cert-manager - - ../../base/timescale-db + - ../../base/timescaledb - ../../base/traefik-ingress patches: