Skip to content

Commit

Permalink
Merge pull request #6559 from zalando-incubator/metrics-scraper-vpa
Browse files Browse the repository at this point in the history
add vpa to dashboard metrics scraper
  • Loading branch information
mikkeloscar authored Oct 19, 2023
2 parents c78b2da + b0b3611 commit c579700
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cluster/config-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ prometheus_remote_min_backoff: "3s"
# Maximum retry delay.
prometheus_remote_max_backoff: "10s"

# dashboard metrics scraper resource limits
dashboard_metrics_scraper_cpu_min: "50m"
dashboard_metrics_scraper_mem_min: "200Mi"

metrics_service_cpu: "100m"
metrics_service_mem_max: "4Gi"
metrics_server_metric_resolution: "15s"
Expand Down
21 changes: 21 additions & 0 deletions cluster/manifests/dashboard/scraper-vpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: dashboard-metrics-scraper-vpa
namespace: kube-system
labels:
application: kubernetes
component: dashboard-metrics-scraper
spec:
targetRef:
apiVersion: apps/v1
kind: Deployment
name: dashboard-metrics-scraper
updatePolicy:
updateMode: Auto
resourcePolicy:
containerPolicies:
- containerName: dashboard-metrics-scraper
minAllowed:
memory: {{ .Cluster.ConfigItems.dashboard_metrics_scraper_mem_min }}
cpu: {{ .Cluster.ConfigItems.dashboard_metrics_scraper_cpu_min }}

0 comments on commit c579700

Please sign in to comment.