From 5e40cbd08b3fefd8f97e6b1c1593b633cf4bda10 Mon Sep 17 00:00:00 2001 From: emelinda Date: Mon, 5 Oct 2026 19:02:52 +0300 Subject: [PATCH] Restructure `brusnika-prod` infrastructure by splitting component configurations into dedicated directories and adding respective kustomizations. --- .../infrastructure/kustomization.yaml | 143 ++---------------- .../goalert/brusnika-prod}/goalert.yaml | 0 .../goalert/brusnika-prod/kustomization.yaml | 12 ++ .../brusnika-prod}/istio-config.yaml | 0 .../brusnika-prod/kustomization.yaml | 12 ++ .../istio-dashboard-compat-vmrule.yaml | 0 .../istio-gateway-stats-scrape.yaml | 0 .../brusnika-prod}/istio-gateway.yaml | 0 .../brusnika-prod/kustomization.yaml | 14 ++ .../kafka-exporter-yc-dashboard.yaml | 0 .../kafka-exporter-yc-rules.yaml | 0 .../brusnika-prod}/kafka-exporter-yc.yaml | 0 .../brusnika-prod}/kafka-exporter.yaml | 0 .../brusnika-prod/kustomization.yaml | 15 ++ .../minio/brusnika-prod/kustomization.yaml | 12 ++ .../minio/brusnika-prod}/minio.yaml | 0 .../brusnika-prod/kustomization.yaml | 12 ++ .../brusnika-prod}/openobserve.yaml | 0 .../brusnika-prod/kustomization.yaml | 12 ++ .../opentelemetry-collector.yaml | 0 .../brusnika-prod/kustomization.yaml | 12 ++ .../opentelemetry-operator.yaml | 0 .../brusnika-prod/kustomization.yaml | 12 ++ .../pgbouncer/brusnika-prod}/pgbouncer.yaml | 0 .../brusnika-prod/kustomization.yaml | 12 ++ .../brusnika-prod}/postgres-exporter.yaml | 0 .../brusnika-prod/kustomization.yaml | 12 ++ .../brusnika-prod}/prometheus-stack.yaml | 0 .../vault/brusnika-prod/kustomization.yaml | 13 ++ .../vault/brusnika-prod}/vault-ingress.yaml | 0 .../vault/brusnika-prod}/vault.yaml | 0 .../vmstack/brusnika-prod/kustomization.yaml | 13 ++ .../node-exporter-vmnodescrape.yaml | 0 .../vmstack/brusnika-prod}/vmstack.yaml | 0 .../zitadel/brusnika-prod/kustomization.yaml | 12 ++ .../zitadel/brusnika-prod}/zitadel.yaml | 0 36 files changed, 190 insertions(+), 128 deletions(-) rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/goalert/brusnika-prod}/goalert.yaml (100%) create mode 100644 infrastructure/goalert/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/istio-config/brusnika-prod}/istio-config.yaml (100%) create mode 100644 infrastructure/istio-config/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure => infrastructure/istio-gateway/brusnika-prod}/istio-dashboard-compat-vmrule.yaml (100%) rename {clusters/brusnika-prod/infrastructure => infrastructure/istio-gateway/brusnika-prod}/istio-gateway-stats-scrape.yaml (100%) rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/istio-gateway/brusnika-prod}/istio-gateway.yaml (100%) create mode 100644 infrastructure/istio-gateway/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure => infrastructure/kafka-exporter/brusnika-prod}/kafka-exporter-yc-dashboard.yaml (100%) rename {clusters/brusnika-prod/infrastructure => infrastructure/kafka-exporter/brusnika-prod}/kafka-exporter-yc-rules.yaml (100%) rename {clusters/brusnika-prod/infrastructure => infrastructure/kafka-exporter/brusnika-prod}/kafka-exporter-yc.yaml (100%) rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/kafka-exporter/brusnika-prod}/kafka-exporter.yaml (100%) create mode 100644 infrastructure/kafka-exporter/brusnika-prod/kustomization.yaml create mode 100644 infrastructure/minio/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/minio/brusnika-prod}/minio.yaml (100%) create mode 100644 infrastructure/openobserve/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/openobserve/brusnika-prod}/openobserve.yaml (100%) create mode 100644 infrastructure/opentelemetry-collector/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/opentelemetry-collector/brusnika-prod}/opentelemetry-collector.yaml (100%) create mode 100644 infrastructure/opentelemetry-operator/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/opentelemetry-operator/brusnika-prod}/opentelemetry-operator.yaml (100%) create mode 100644 infrastructure/pgbouncer/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/pgbouncer/brusnika-prod}/pgbouncer.yaml (100%) create mode 100644 infrastructure/postgres-exporter/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/postgres-exporter/brusnika-prod}/postgres-exporter.yaml (100%) create mode 100644 infrastructure/prometheus-stack/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/prometheus-stack/brusnika-prod}/prometheus-stack.yaml (100%) create mode 100644 infrastructure/vault/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure => infrastructure/vault/brusnika-prod}/vault-ingress.yaml (100%) rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/vault/brusnika-prod}/vault.yaml (100%) create mode 100644 infrastructure/vmstack/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure => infrastructure/vmstack/brusnika-prod}/node-exporter-vmnodescrape.yaml (100%) rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/vmstack/brusnika-prod}/vmstack.yaml (100%) create mode 100644 infrastructure/zitadel/brusnika-prod/kustomization.yaml rename {clusters/brusnika-prod/infrastructure/patches => infrastructure/zitadel/brusnika-prod}/zitadel.yaml (100%) diff --git a/clusters/brusnika-prod/infrastructure/kustomization.yaml b/clusters/brusnika-prod/infrastructure/kustomization.yaml index e6565fe..2fae149 100644 --- a/clusters/brusnika-prod/infrastructure/kustomization.yaml +++ b/clusters/brusnika-prod/infrastructure/kustomization.yaml @@ -3,134 +3,21 @@ kind: Kustomization resources: - ../../../infrastructure/istio-base - ../../../infrastructure/istio-pilot - - ../../../infrastructure/istio-gateway - - ../../../infrastructure/istio-config - - ../../../infrastructure/vault - - ../../../infrastructure/zitadel - - ../../../infrastructure/minio - - ../../../infrastructure/openobserve - - ../../../infrastructure/vmstack - - ../../../infrastructure/prometheus-stack - - ../../../infrastructure/opentelemetry-operator - - ../../../infrastructure/opentelemetry-collector - - ../../../infrastructure/goalert - - ../../../infrastructure/kafka-exporter - - ../../../infrastructure/postgres-exporter - - ../../../infrastructure/pgbouncer - - ./vault-ingress.yaml + - ../../../infrastructure/istio-gateway/brusnika-prod + - ../../../infrastructure/istio-config/brusnika-prod + - ../../../infrastructure/vault/brusnika-prod + - ../../../infrastructure/zitadel/brusnika-prod + - ../../../infrastructure/minio/brusnika-prod + - ../../../infrastructure/openobserve/brusnika-prod + - ../../../infrastructure/vmstack/brusnika-prod + - ../../../infrastructure/prometheus-stack/brusnika-prod + - ../../../infrastructure/opentelemetry-operator/brusnika-prod + - ../../../infrastructure/opentelemetry-collector/brusnika-prod + - ../../../infrastructure/goalert/brusnika-prod + - ../../../infrastructure/kafka-exporter/brusnika-prod + - ../../../infrastructure/postgres-exporter/brusnika-prod + - ../../../infrastructure/pgbouncer/brusnika-prod - ./clusterissuer-letsencrypt.yaml - - ./node-exporter-vmnodescrape.yaml - - ./istio-gateway-stats-scrape.yaml - - ./istio-dashboard-compat-vmrule.yaml - ./camunda-servicemonitors.yaml - ./rabbitmq-exporter.yaml - - ./kafka-exporter-yc.yaml - - ./kafka-exporter-yc-rules.yaml - - ./kafka-exporter-yc-dashboard.yaml - - ../../../infrastructure/failed-pod-cleanup -patches: - - path: ./patches/istio-gateway.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: ingressgateway - namespace: istio-system - - path: ./patches/istio-config.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: istio-config - namespace: default - - path: ./patches/vault.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: vault - namespace: vault - - path: ./patches/zitadel.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: zitadel - namespace: zitadel - - path: ./patches/minio.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: minio - namespace: minio - - path: ./patches/openobserve.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: openobserve - namespace: openobserve - - path: ./patches/vmstack.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: vmstack - namespace: vmstack - - path: ./patches/prometheus-stack.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: prometheus-stack - namespace: prometheus-stack - - path: ./patches/opentelemetry-operator.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: opentelemetry-operator - namespace: opentelemetry-operator - - path: ./patches/opentelemetry-collector.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: opentelemetry-collector - namespace: opentelemetry-collector - - path: ./patches/goalert.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: goalert - namespace: goalert - - path: ./patches/kafka-exporter.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: kafka-exporter - namespace: kafka-exporter - - path: ./patches/postgres-exporter.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: postgres-exporter - namespace: postgres-exporter - - path: ./patches/failed-pod-cleanup.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: failed-pod-cleanup - namespace: default - - path: ./patches/pgbouncer.yaml - target: - group: helm.toolkit.fluxcd.io - version: v2 - kind: HelmRelease - name: pgbouncer - namespace: pgbouncer + - ../../../infrastructure/failed-pod-cleanup/brusnika-prod diff --git a/clusters/brusnika-prod/infrastructure/patches/goalert.yaml b/infrastructure/goalert/brusnika-prod/goalert.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/goalert.yaml rename to infrastructure/goalert/brusnika-prod/goalert.yaml diff --git a/infrastructure/goalert/brusnika-prod/kustomization.yaml b/infrastructure/goalert/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..d4aea85 --- /dev/null +++ b/infrastructure/goalert/brusnika-prod/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: ./goalert.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: goalert + namespace: goalert diff --git a/clusters/brusnika-prod/infrastructure/patches/istio-config.yaml b/infrastructure/istio-config/brusnika-prod/istio-config.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/istio-config.yaml rename to infrastructure/istio-config/brusnika-prod/istio-config.yaml diff --git a/infrastructure/istio-config/brusnika-prod/kustomization.yaml b/infrastructure/istio-config/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..d4679f4 --- /dev/null +++ b/infrastructure/istio-config/brusnika-prod/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: ./istio-config.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: istio-config + namespace: default diff --git a/clusters/brusnika-prod/infrastructure/istio-dashboard-compat-vmrule.yaml b/infrastructure/istio-gateway/brusnika-prod/istio-dashboard-compat-vmrule.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/istio-dashboard-compat-vmrule.yaml rename to infrastructure/istio-gateway/brusnika-prod/istio-dashboard-compat-vmrule.yaml diff --git a/clusters/brusnika-prod/infrastructure/istio-gateway-stats-scrape.yaml b/infrastructure/istio-gateway/brusnika-prod/istio-gateway-stats-scrape.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/istio-gateway-stats-scrape.yaml rename to infrastructure/istio-gateway/brusnika-prod/istio-gateway-stats-scrape.yaml diff --git a/clusters/brusnika-prod/infrastructure/patches/istio-gateway.yaml b/infrastructure/istio-gateway/brusnika-prod/istio-gateway.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/istio-gateway.yaml rename to infrastructure/istio-gateway/brusnika-prod/istio-gateway.yaml diff --git a/infrastructure/istio-gateway/brusnika-prod/kustomization.yaml b/infrastructure/istio-gateway/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..e2fd9b8 --- /dev/null +++ b/infrastructure/istio-gateway/brusnika-prod/kustomization.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base + - ./istio-gateway-stats-scrape.yaml + - ./istio-dashboard-compat-vmrule.yaml +patches: + - path: ./istio-gateway.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: ingressgateway + namespace: istio-system diff --git a/clusters/brusnika-prod/infrastructure/kafka-exporter-yc-dashboard.yaml b/infrastructure/kafka-exporter/brusnika-prod/kafka-exporter-yc-dashboard.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/kafka-exporter-yc-dashboard.yaml rename to infrastructure/kafka-exporter/brusnika-prod/kafka-exporter-yc-dashboard.yaml diff --git a/clusters/brusnika-prod/infrastructure/kafka-exporter-yc-rules.yaml b/infrastructure/kafka-exporter/brusnika-prod/kafka-exporter-yc-rules.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/kafka-exporter-yc-rules.yaml rename to infrastructure/kafka-exporter/brusnika-prod/kafka-exporter-yc-rules.yaml diff --git a/clusters/brusnika-prod/infrastructure/kafka-exporter-yc.yaml b/infrastructure/kafka-exporter/brusnika-prod/kafka-exporter-yc.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/kafka-exporter-yc.yaml rename to infrastructure/kafka-exporter/brusnika-prod/kafka-exporter-yc.yaml diff --git a/clusters/brusnika-prod/infrastructure/patches/kafka-exporter.yaml b/infrastructure/kafka-exporter/brusnika-prod/kafka-exporter.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/kafka-exporter.yaml rename to infrastructure/kafka-exporter/brusnika-prod/kafka-exporter.yaml diff --git a/infrastructure/kafka-exporter/brusnika-prod/kustomization.yaml b/infrastructure/kafka-exporter/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..a80a531 --- /dev/null +++ b/infrastructure/kafka-exporter/brusnika-prod/kustomization.yaml @@ -0,0 +1,15 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base + - ./kafka-exporter-yc.yaml + - ./kafka-exporter-yc-rules.yaml + - ./kafka-exporter-yc-dashboard.yaml +patches: + - path: ./kafka-exporter.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: kafka-exporter + namespace: kafka-exporter diff --git a/infrastructure/minio/brusnika-prod/kustomization.yaml b/infrastructure/minio/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..14cf0d4 --- /dev/null +++ b/infrastructure/minio/brusnika-prod/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: ./minio.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: minio + namespace: minio diff --git a/clusters/brusnika-prod/infrastructure/patches/minio.yaml b/infrastructure/minio/brusnika-prod/minio.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/minio.yaml rename to infrastructure/minio/brusnika-prod/minio.yaml diff --git a/infrastructure/openobserve/brusnika-prod/kustomization.yaml b/infrastructure/openobserve/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..f95323b --- /dev/null +++ b/infrastructure/openobserve/brusnika-prod/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: ./openobserve.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: openobserve + namespace: openobserve diff --git a/clusters/brusnika-prod/infrastructure/patches/openobserve.yaml b/infrastructure/openobserve/brusnika-prod/openobserve.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/openobserve.yaml rename to infrastructure/openobserve/brusnika-prod/openobserve.yaml diff --git a/infrastructure/opentelemetry-collector/brusnika-prod/kustomization.yaml b/infrastructure/opentelemetry-collector/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..7c0cd7a --- /dev/null +++ b/infrastructure/opentelemetry-collector/brusnika-prod/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: ./opentelemetry-collector.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: opentelemetry-collector + namespace: opentelemetry-collector diff --git a/clusters/brusnika-prod/infrastructure/patches/opentelemetry-collector.yaml b/infrastructure/opentelemetry-collector/brusnika-prod/opentelemetry-collector.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/opentelemetry-collector.yaml rename to infrastructure/opentelemetry-collector/brusnika-prod/opentelemetry-collector.yaml diff --git a/infrastructure/opentelemetry-operator/brusnika-prod/kustomization.yaml b/infrastructure/opentelemetry-operator/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..4809976 --- /dev/null +++ b/infrastructure/opentelemetry-operator/brusnika-prod/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: ./opentelemetry-operator.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: opentelemetry-operator + namespace: opentelemetry-operator diff --git a/clusters/brusnika-prod/infrastructure/patches/opentelemetry-operator.yaml b/infrastructure/opentelemetry-operator/brusnika-prod/opentelemetry-operator.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/opentelemetry-operator.yaml rename to infrastructure/opentelemetry-operator/brusnika-prod/opentelemetry-operator.yaml diff --git a/infrastructure/pgbouncer/brusnika-prod/kustomization.yaml b/infrastructure/pgbouncer/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..5fbd024 --- /dev/null +++ b/infrastructure/pgbouncer/brusnika-prod/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: ./pgbouncer.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: pgbouncer + namespace: pgbouncer diff --git a/clusters/brusnika-prod/infrastructure/patches/pgbouncer.yaml b/infrastructure/pgbouncer/brusnika-prod/pgbouncer.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/pgbouncer.yaml rename to infrastructure/pgbouncer/brusnika-prod/pgbouncer.yaml diff --git a/infrastructure/postgres-exporter/brusnika-prod/kustomization.yaml b/infrastructure/postgres-exporter/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..59add8d --- /dev/null +++ b/infrastructure/postgres-exporter/brusnika-prod/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: ./postgres-exporter.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: postgres-exporter + namespace: postgres-exporter diff --git a/clusters/brusnika-prod/infrastructure/patches/postgres-exporter.yaml b/infrastructure/postgres-exporter/brusnika-prod/postgres-exporter.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/postgres-exporter.yaml rename to infrastructure/postgres-exporter/brusnika-prod/postgres-exporter.yaml diff --git a/infrastructure/prometheus-stack/brusnika-prod/kustomization.yaml b/infrastructure/prometheus-stack/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..a23bcc0 --- /dev/null +++ b/infrastructure/prometheus-stack/brusnika-prod/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: ./prometheus-stack.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: prometheus-stack + namespace: prometheus-stack diff --git a/clusters/brusnika-prod/infrastructure/patches/prometheus-stack.yaml b/infrastructure/prometheus-stack/brusnika-prod/prometheus-stack.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/prometheus-stack.yaml rename to infrastructure/prometheus-stack/brusnika-prod/prometheus-stack.yaml diff --git a/infrastructure/vault/brusnika-prod/kustomization.yaml b/infrastructure/vault/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..0be6d42 --- /dev/null +++ b/infrastructure/vault/brusnika-prod/kustomization.yaml @@ -0,0 +1,13 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base + - ./vault-ingress.yaml +patches: + - path: ./vault.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: vault + namespace: vault diff --git a/clusters/brusnika-prod/infrastructure/vault-ingress.yaml b/infrastructure/vault/brusnika-prod/vault-ingress.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/vault-ingress.yaml rename to infrastructure/vault/brusnika-prod/vault-ingress.yaml diff --git a/clusters/brusnika-prod/infrastructure/patches/vault.yaml b/infrastructure/vault/brusnika-prod/vault.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/vault.yaml rename to infrastructure/vault/brusnika-prod/vault.yaml diff --git a/infrastructure/vmstack/brusnika-prod/kustomization.yaml b/infrastructure/vmstack/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..a4e096c --- /dev/null +++ b/infrastructure/vmstack/brusnika-prod/kustomization.yaml @@ -0,0 +1,13 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base + - ./node-exporter-vmnodescrape.yaml +patches: + - path: ./vmstack.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: vmstack + namespace: vmstack diff --git a/clusters/brusnika-prod/infrastructure/node-exporter-vmnodescrape.yaml b/infrastructure/vmstack/brusnika-prod/node-exporter-vmnodescrape.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/node-exporter-vmnodescrape.yaml rename to infrastructure/vmstack/brusnika-prod/node-exporter-vmnodescrape.yaml diff --git a/clusters/brusnika-prod/infrastructure/patches/vmstack.yaml b/infrastructure/vmstack/brusnika-prod/vmstack.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/vmstack.yaml rename to infrastructure/vmstack/brusnika-prod/vmstack.yaml diff --git a/infrastructure/zitadel/brusnika-prod/kustomization.yaml b/infrastructure/zitadel/brusnika-prod/kustomization.yaml new file mode 100644 index 0000000..28c6bb1 --- /dev/null +++ b/infrastructure/zitadel/brusnika-prod/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: ./zitadel.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: zitadel + namespace: zitadel diff --git a/clusters/brusnika-prod/infrastructure/patches/zitadel.yaml b/infrastructure/zitadel/brusnika-prod/zitadel.yaml similarity index 100% rename from clusters/brusnika-prod/infrastructure/patches/zitadel.yaml rename to infrastructure/zitadel/brusnika-prod/zitadel.yaml