Skip to content

Commit

Permalink
Merge pull request #5361 from zalando-incubator/add-vpa-version-confi…
Browse files Browse the repository at this point in the history
…g-item

Add VPA version config-item
  • Loading branch information
mikkeloscar authored Sep 15, 2022
2 parents bd180e3 + b8a6cb7 commit a14cbc4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cluster/config-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ horizontal_pod_autoscaler_sync_period: "30s"
horizontal_pod_autoscaler_tolerance: "0.1"
horizontal_pod_downscale_stabilization: "5m0s"

# Vertical pod autoscaler version for controlling roll-out, can be "current" or "legacy"
# current => v0.11.0-internal.17
# legacy => v0.6.1-internal.16
vertical_pod_autoscaler_version: "current"

# Cluster update settings
{{if eq .Cluster.Environment "production"}}
drain_grace_period: "6h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ spec:
serviceAccountName: vpa-admission-controller
containers:
- name: admission-controller
{{if eq .Cluster.ConfigItems.vertical_pod_autoscaler_version "current"}}
image: container-registry.zalando.net/teapot/vpa-admission-controller:v0.11.0-internal.17
{{else if eq .Cluster.ConfigItems.vertical_pod_autoscaler_version "legacy"}}
image: container-registry.zalando.net/teapot/vpa-admission-controller:v0.6.1-internal.16
{{end}}
command:
- /admission-controller
args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ spec:
serviceAccountName: vpa-recommender
containers:
- name: recommender
{{if eq .Cluster.ConfigItems.vertical_pod_autoscaler_version "current"}}
image: container-registry.zalando.net/teapot/vpa-recommender:v0.11.0-internal.17
{{else if eq .Cluster.ConfigItems.vertical_pod_autoscaler_version "legacy"}}
image: container-registry.zalando.net/teapot/vpa-recommender:v0.6.1-internal.16
{{end}}
args:
- --logtostderr
- --v=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@ spec:
serviceAccountName: vpa-updater
containers:
- name: updater
{{if eq .Cluster.ConfigItems.vertical_pod_autoscaler_version "current"}}
image: container-registry.zalando.net/teapot/vpa-updater:v0.11.0-internal.17
{{else if eq .Cluster.ConfigItems.vertical_pod_autoscaler_version "legacy"}}
image: container-registry.zalando.net/teapot/vpa-updater:v0.6.1-internal.16
{{end}}
command:
- ./updater
args:
- --v=1
- --logtostderr
- --min-replicas=1
- --pod-lifetime-update-threshold=12h
- --evict-after-oom-threshold=12h
resources:
limits:
Expand Down

0 comments on commit a14cbc4

Please sign in to comment.