Skip to content

Commit

Permalink
Hibernate prometheus_adapter (#394)
Browse files Browse the repository at this point in the history
Use more replicas when we have in place custom metrics to use in
autoscaling
  • Loading branch information
stafot authored Jan 13, 2021
1 parent aaa7bad commit 2037b27
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion manifests/prometheus-adapter/prometheus-adapter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ metadata:
name: prometheus-adapter
namespace: kube-system
spec:
replicas: 1
replicas: 0
selector:
matchLabels:
name: prometheus-adapter
Expand All @@ -233,6 +233,15 @@ spec:
labels:
name: prometheus-adapter
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: kops.k8s.io/instancegroup
operator: In
values:
- nodes-utilities
containers:
- args:
- --cert-dir=/var/run/serving-cert
Expand Down

0 comments on commit 2037b27

Please sign in to comment.