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 9 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
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ spec:
values:
alertmanager:
enabled: false
prometheusOperator:
priorityClassName: system-cluster-critical
prometheus:
prometheusSpec:
priorityClassName: system-cluster-critical
retention: 168h
resources:
requests:
Expand All @@ -56,6 +59,7 @@ spec:
app.kubernetes.io/part-of: spectrum-monitoring

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

kube-state-metrics:
priorityClassName: system-cluster-critical
prometheus-node-exporter:
priorityClassName: system-cluster-critical
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ spec:
values:
promtail:
enabled: true
priorityClassName: system-cluster-critical
loki:
enabled: true
isDefault: false
priorityClassName: system-cluster-critical
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
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