Skip to content
Snippets Groups Projects
Commit a8b036e6 authored by Matthias Loibl's avatar Matthias Loibl
Browse files

contrib/kube-prometheus: Generate Prometheus Adapter with maxSurge

parent 12eaf288
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"subdir": "contrib/kube-prometheus/jsonnet/kube-prometheus" "subdir": "contrib/kube-prometheus/jsonnet/kube-prometheus"
} }
}, },
"version": "cc1d3b421e00f8891582ba9692b78814220c69c6" "version": "920b29babc4f4e490170b73aba2f9de86e0a08b6"
}, },
{ {
"name": "ksonnet", "name": "ksonnet",
......
...@@ -8,6 +8,10 @@ spec: ...@@ -8,6 +8,10 @@ spec:
selector: selector:
matchLabels: matchLabels:
name: prometheus-adapter name: prometheus-adapter
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template: template:
metadata: metadata:
labels: labels:
...@@ -21,7 +25,7 @@ spec: ...@@ -21,7 +25,7 @@ spec:
- --metrics-relist-interval=1m - --metrics-relist-interval=1m
- --prometheus-url=http://prometheus-k8s.monitoring.svc:9090/ - --prometheus-url=http://prometheus-k8s.monitoring.svc:9090/
- --secure-port=6443 - --secure-port=6443
image: quay.io/coreos/k8s-prometheus-adapter-amd64:v0.3.0 image: quay.io/coreos/k8s-prometheus-adapter-amd64:v0.4.0
name: prometheus-adapter name: prometheus-adapter
ports: ports:
- containerPort: 6443 - containerPort: 6443
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment