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 8eeed74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
10 changes: 3 additions & 7 deletions infra/k8s/web/templates/descheduler-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: CronJob
metadata:
name: {{ include "web.fullname" . }}
spec:
schedule: {{ .Values.descheduler.schedule }}
schedule: "{{ .Values.descheduler.schedule }}"
jobTemplate:
spec:
template:
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 8eeed74

Please sign in to comment.