Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate deployment of monitoring stack to flux #3009

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions clusters/prow-build/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ resources:
- flux-system
- ../base
- coredns-kustomization.yaml
- monitoring-build-kustomization.yaml
15 changes: 15 additions & 0 deletions clusters/prow-build/monitoring-build-kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: monitoring-build
oliver-goetz marked this conversation as resolved.
Show resolved Hide resolved
namespace: flux-system
spec:
interval: 30m
path: deploy/monitoring/build
prune: true
retryInterval: 2m
sourceRef:
kind: GitRepository
name: ci-infra
timeout: 10m
wait: true
1 change: 1 addition & 0 deletions clusters/prow-trusted/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ resources:
- prow-kustomization.yaml
- oauth2-proxy-kustomization.yaml
- renovate-kustomization.yaml
- monitoring-trusted-kustomization.yaml
15 changes: 15 additions & 0 deletions clusters/prow-trusted/monitoring-trusted-kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: monitoring-trusted
namespace: flux-system
spec:
interval: 30m
path: deploy/monitoring/trusted
prune: true
retryInterval: 2m
sourceRef:
kind: GitRepository
name: ci-infra
timeout: 10m
wait: true
18 changes: 18 additions & 0 deletions deploy/monitoring/base/alertmanager-vpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
labels:
app.kubernetes.io/name: alertmanager
name: alertmanager-prometheus
namespace: monitoring
spec:
resourcePolicy:
containerPolicies:
- containerName: '*'
controlledValues: RequestsOnly
targetRef:
apiVersion: monitoring.coreos.com/v1
kind: Alertmanager
name: prometheus
updatePolicy:
updateMode: Auto
18 changes: 18 additions & 0 deletions deploy/monitoring/base/grafana-vpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
labels:
app.kubernetes.io/name: grafana
name: grafana
namespace: monitoring
spec:
resourcePolicy:
containerPolicies:
- containerName: '*'
controlledValues: RequestsOnly
targetRef:
apiVersion: apps/v1
kind: Deployment
name: grafana
updatePolicy:
updateMode: Auto
Loading