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

fix: Spectrum priority class tune #150

Merged
merged 10 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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 flux/clusters/default/kustomization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ resources:
- ../../core/local-path-provisioner
- ../../core/metrics-server
- ../../core/kubelet-serving-cert-approver
- ../../core/monitoring-prerequisites
- ../../components/monitoring
1 change: 1 addition & 0 deletions flux/clusters/ephemeral/kustomization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ resources:
- ../../core/local-path-provisioner
- ../../core/metrics-server
- ../../core/kubelet-serving-cert-approver
- ../../core/monitoring-prerequisites
- ../../components/kubevirt
- ../../components/monitoring
- hubble-ingress.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ spec:
values:
alertmanager:
enabled: false
prometheusOperator:
priorityClassName: spectrum-monitoring
prometheus:
prometheusSpec:
priorityClassName: spectrum-monitoring
retention: 168h
resources:
requests:
Expand All @@ -56,6 +59,7 @@ spec:
app.kubernetes.io/part-of: spectrum-monitoring

grafana:
priorityClassName: spectrum-monitoring
defaultDashboardsEnabled: false
adminPassword: fluence
sidecar:
Expand All @@ -68,3 +72,8 @@ spec:
provider:
allowUiUpdates: true
foldersFromFilesStructure: true

kube-state-metrics:
priorityClassName: spectrum-monitoring
prometheus-node-exporter:
priorityClassName: spectrum-monitoring
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ spec:
values:
promtail:
enabled: true
priorityClassName: spectrum-monitoring
loki:
enabled: true
isDefault: false
priorityClassName: spectrum-monitoring
serviceMonitor:
enabled: true
additionalLabels:
Expand Down
8 changes: 8 additions & 0 deletions flux/core/local-path-provisioner/kustomization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ patches:
name: local-path-storage
labels:
pod-security.kubernetes.io/enforce: privileged
- patch: |-
- op: replace
path: /spec/template/spec/priorityClassName
value: system-cluster-critical
target:
kind: Deployment
name: local-path-provisioner
namespace: local-path-storage
4 changes: 4 additions & 0 deletions flux/core/monitoring-prerequisites/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./manifests.yaml
9 changes: 9 additions & 0 deletions flux/core/monitoring-prerequisites/manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

---
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just put it into components/monitoring no? As another yaml

apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: spectrum-monitoring
value: 100000
globalDefault: false
description: "Spectrum monitoring priority class"
16 changes: 16 additions & 0 deletions terraform-modules/spectrum/flux.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ resource "helm_release" "flux" {
name = "imageAutomationController.create"
value = "false"
}
set {
name = "helmController.priorityClassName"
value = "system-cluster-critical"
}
set {
name = "kustomizeController.priorityClassName"
value = "system-cluster-critical"
}
set {
name = "notificationController.priorityClassName"
value = "system-cluster-critical"
}
set {
name = "sourceController.priorityClassName"
value = "system-cluster-critical"
}
}

resource "helm_release" "flux-sync" {
Expand Down
Loading