Skip to content

Commit

Permalink
refactor: Add kps ocirepositories
Browse files Browse the repository at this point in the history
  • Loading branch information
szinn committed Mar 4, 2025
1 parent 717e29f commit 752f4a2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@ kind: HelmRelease
metadata:
name: &app kube-prometheus-stack
spec:
interval: 5m
timeout: 15m
chart:
spec:
chart: kube-prometheus-stack
version: 69.7.2
sourceRef:
kind: HelmRepository
name: prometheus-community-charts
namespace: flux-system
interval: 1h
chartRef:
kind: OCIRepository
name: kube-prometheus-stack
namespace: flux-system
install:
remediation:
retries: 3
Expand Down
15 changes: 15 additions & 0 deletions kubernetes/repositories/oci/kube-prometheus-stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/ocirepository_v1beta2.json
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
name: kube-prometheus-stack
namespace: flux-system
spec:
interval: 1h
layerSelector:
mediaType: application/vnd.cncf.helm.chart.content.v1.tar+gzip
operation: copy
ref:
tag: 69.7.2
url: oci://ghcr.io/prometheus-community/charts/kube-prometheus-stack
1 change: 1 addition & 0 deletions kubernetes/repositories/oci/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ resources:
- flux-instance.yaml
- flux-operator.yaml
- k8s-ycl.yaml
- kube-prometheus-stack.yaml
- spegel.yaml

0 comments on commit 752f4a2

Please sign in to comment.