Skip to content

Commit

Permalink
Merge pull request #3303 from fluxcd/e2e-arm64-flux-monitoring
Browse files Browse the repository at this point in the history
monitoring: Use kube-prometheus-stack signed OCI Helm chart
  • Loading branch information
stefanprodan committed Nov 9, 2022
2 parents c3a44e8 + 8bd13ed commit 190c732
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/e2e-arm64.yaml
Expand Up @@ -58,6 +58,33 @@ jobs:
kubectl -n flux-system wait kustomization/tenants --for=condition=ready --timeout=5m
kubectl -n apps wait kustomization/dev-team --for=condition=ready --timeout=1m
kubectl -n apps wait helmrelease/podinfo --for=condition=ready --timeout=1m
- name: Run monitoring tests
# Keep this test in sync with https://fluxcd.io/flux/guides/monitoring/
env:
KUBECONFIG: /tmp/${{ steps.prep.outputs.CLUSTER }}
run: |
./bin/flux create source git flux-monitoring \
--interval=30m \
--url=https://github.com/fluxcd/flux2 \
--branch=${GITHUB_REF#refs/heads/}
./bin/flux create kustomization kube-prometheus-stack \
--interval=1h \
--prune \
--source=flux-monitoring \
--path="./manifests/monitoring/kube-prometheus-stack" \
--health-check-timeout=5m \
--wait
./bin/flux create kustomization monitoring-config \
--depends-on=kube-prometheus-stack \
--interval=1h \
--prune=true \
--source=flux-monitoring \
--path="./manifests/monitoring/monitoring-config" \
--health-check-timeout=1m \
--wait
kubectl -n flux-system wait kustomization/kube-prometheus-stack --for=condition=ready --timeout=5m
kubectl -n flux-system wait kustomization/monitoring-config --for=condition=ready --timeout=5m
kubectl -n monitoring wait helmrelease/kube-prometheus-stack --for=condition=ready --timeout=1m
- name: Debug failure
if: failure()
env:
Expand Down
4 changes: 3 additions & 1 deletion manifests/monitoring/kube-prometheus-stack/release.yaml
Expand Up @@ -6,11 +6,13 @@ spec:
interval: 5m
chart:
spec:
version: "35.x"
version: "41.x"
chart: kube-prometheus-stack
sourceRef:
kind: HelmRepository
name: prometheus-community
verify:
provider: cosign
interval: 60m
install:
crds: Create
Expand Down
3 changes: 2 additions & 1 deletion manifests/monitoring/kube-prometheus-stack/repository.yaml
Expand Up @@ -4,4 +4,5 @@ metadata:
name: prometheus-community
spec:
interval: 120m
url: https://prometheus-community.github.io/helm-charts
type: oci
url: oci://ghcr.io/prometheus-community/charts

0 comments on commit 190c732

Please sign in to comment.