Skip to content

Commit

Permalink
WILL BE RESET
Browse files Browse the repository at this point in the history
  • Loading branch information
na2na-p committed Aug 8, 2024
1 parent e816581 commit fddbe6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
12 changes: 4 additions & 8 deletions infra/k8s/web/templates/descheduler-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ kind: CronJob
metadata:
name: {{ include "web.fullname" . }}
spec:
schedule: {{ .Values.descheduler.schedule }}
schedule: "{{ .Values.descheduler.schedule }}"
jobTemplate:
spec:
template:
spec:
containers:
- name: descheduler
image: k8s.gcr.io/descheduler/descheduler:v0.26.1
image: registry.k8s.io/descheduler/descheduler:v0.30.1
command:
- "/bin/descheduler"
args:
Expand All @@ -20,9 +20,8 @@ spec:
- --descheduling-interval
- "30s"
volumeMounts:
- name: policy-volume
mountPath: /policy-dir
subPath: policy.yaml
- mountPath: /policy-dir
name: policy-volume
livenessProbe:
failureThreshold: 3
httpGet:
Expand All @@ -36,7 +35,4 @@ spec:
- name: policy-volume
configMap:
name: {{ include "web.fullname" . }}
items:
- key: policy.yaml
path: policy.yaml
{{- end }}
3 changes: 1 addition & 2 deletions infra/k8s/web/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,4 @@ readinessProbe:
descheduler:
enabled: true
maxPodLifeTimeSeconds: 86400
# 6時間に1回実行
schedule: "0 */6 * * *"
schedule: "*/1 * * * *"

0 comments on commit fddbe6a

Please sign in to comment.