Skip to content

Commit

Permalink
prom-crds
Browse files Browse the repository at this point in the history
  • Loading branch information
rwlove committed Dec 25, 2024
1 parent 3ed3f5e commit 07e4de1
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions kubernetes/main/apps/monitoring/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ resources:
- ./prometheus-nut-exporter/ks.yaml
- ./thanos/ks.yaml
- ./kube-prometheus-stack/ks.yaml
- ./prometheus-operator/ks.yaml
- ./loki/ks.yaml
- ./grafana/ks.yaml
- ./kube-ops-view/ks.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.thesteamedcrab.com/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: prometheus-operator-crds
nameapce: monitoring
spec:
interval: 30m
chart:
spec:
chart: prometheus-operator-crds
version: 17.0.2
interval: 30m
sourceRef:
kind: HelmRepository
name: prometheus-community-charts
namespace: flux-system
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
20 changes: 20 additions & 0 deletions kubernetes/main/apps/monitoring/prometheus-operator/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &appname monitoring-prometheus-operator-crds
namespace: flux-system
spec:
targetNamespace: monitoring
commonMetadata:
labels:
app.kubernetes.io/name: *appname
interval: 30m
timeout: 5m
path: ./kubernetes/main/apps/monitoring/prometheus-operator/crds
prune: true
sourceRef:
kind: GitRepository
name: home-ops-kubernetes
wait: false

0 comments on commit 07e4de1

Please sign in to comment.