Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion sweeper-chart/templates/cronjob-scale-to-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
serviceAccountName: {{ include "sweeper.serviceAccountName" . }}
containers:
- name: scaler
image: alpine/kubectl:latest
image: "{{ .Values.scaler.image.repository }}:{{ .Values.scaler.image.tag }}"
command:
- /bin/sh
- -c
Expand Down
2 changes: 1 addition & 1 deletion sweeper-chart/templates/cronjob-scale-to-zero.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
serviceAccountName: {{ include "sweeper.serviceAccountName" . }}
containers:
- name: scaler
image: alpine/kubectl:latest
image: "{{ .Values.scaler.image.repository }}:{{ .Values.scaler.image.tag }}"
command:
- /bin/sh
- -c
Expand Down
4 changes: 4 additions & 0 deletions sweeper-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ etcd:
port: 2379

scaler:
# Image used by the scale-to-zero/scale-to-one cronjobs.
image:
repository: alpine/kubectl
tag: "1.36.0"
timeZone: "Europe/Rome"
scaleToZero:
schedule: "0 6 * * *" # default: 06:00
Expand Down
Loading