From d3692d298a0cf1cde218f2fbfad829b6fbc56d04 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sun, 20 Oct 2024 12:06:01 -0500 Subject: [PATCH] add oci prom-community --- .../flux/repositories/kustomization.yaml | 1 + .../flux/repositories/oci/kustomization.yaml | 6 ++ .../oci/prometheus-community.yaml | 90 +++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 kubernetes/flux/repositories/oci/kustomization.yaml create mode 100644 kubernetes/flux/repositories/oci/prometheus-community.yaml diff --git a/kubernetes/flux/repositories/kustomization.yaml b/kubernetes/flux/repositories/kustomization.yaml index 219c6e2e..15d1a6bb 100644 --- a/kubernetes/flux/repositories/kustomization.yaml +++ b/kubernetes/flux/repositories/kustomization.yaml @@ -5,3 +5,4 @@ kind: Kustomization namespace: flux-system resources: - ./helm + - ./oci diff --git a/kubernetes/flux/repositories/oci/kustomization.yaml b/kubernetes/flux/repositories/oci/kustomization.yaml new file mode 100644 index 00000000..3c077416 --- /dev/null +++ b/kubernetes/flux/repositories/oci/kustomization.yaml @@ -0,0 +1,6 @@ +--- +# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - prometheus-community.yaml diff --git a/kubernetes/flux/repositories/oci/prometheus-community.yaml b/kubernetes/flux/repositories/oci/prometheus-community.yaml new file mode 100644 index 00000000..cbd35c4e --- /dev/null +++ b/kubernetes/flux/repositories/oci/prometheus-community.yaml @@ -0,0 +1,90 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/ocirepository-source-v1beta2.json +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: OCIRepository +metadata: + name: alertmanager + namespace: flux-system +spec: + interval: 2h + layerSelector: + mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip" + operation: copy + url: oci://ghcr.io/prometheus-community/charts/alertmanager + ref: + semver: 1.13.0 +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/ocirepository-source-v1beta2.json +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: OCIRepository +metadata: + name: kube-state-metrics + namespace: flux-system +spec: + interval: 2h + layerSelector: + mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip" + operation: copy + url: oci://ghcr.io/prometheus-community/charts/kube-state-metrics + ref: + semver: 5.25.1 +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/ocirepository-source-v1beta2.json +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: OCIRepository +metadata: + name: kube-prometheus-stack + namespace: flux-system +spec: + interval: 2h + layerSelector: + mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip" + operation: copy + url: oci://ghcr.io/prometheus-community/charts/kube-prometheus-stack + ref: + semver: 62.7.0 +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/ocirepository-source-v1beta2.json +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: OCIRepository +metadata: + name: prometheus-node-exporter + namespace: flux-system +spec: + interval: 2h + layerSelector: + mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip" + operation: copy + url: oci://ghcr.io/prometheus-community/charts/prometheus-node-exporter + ref: + semver: 4.39.0 +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/ocirepository-source-v1beta2.json +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: OCIRepository +metadata: + name: prometheus-operator-crds + namespace: flux-system +spec: + interval: 2h + layerSelector: + mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip" + operation: copy + url: oci://ghcr.io/prometheus-community/charts/prometheus-operator-crds + ref: + semver: 14.0.0 +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/ocirepository-source-v1beta2.json +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: OCIRepository +metadata: + name: prometheus-smartctl-exporter + namespace: flux-system +spec: + interval: 2h + layerSelector: + mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip" + operation: copy + url: oci://ghcr.io/prometheus-community/charts/prometheus-smartctl-exporter + ref: + semver: 0.10.0