mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Comment cost-saving changes in sandbox Helm Chart (#12424)
These are comments for 3 of the main changes that prevent lingering containers from causing runaway costs in sandbox.
This commit is contained in:
parent
d70ae633c0
commit
2649073d91
@ -10,8 +10,13 @@ metadata:
|
|||||||
name: {{ .Values.fleetName }}
|
name: {{ .Values.fleetName }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
spec:
|
spec:
|
||||||
|
# Forbiding concurrency prevents runaway costs on failing cronjobs stacking up
|
||||||
|
# see https://docs.google.com/document/d/1-4KmOlgfGEksNZnQo79a9nRLgM_i7ar2qovoZO3s_6g/edit.
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
schedule: "{{ .Values.crons.vulnerabilities }}"
|
schedule: "{{ .Values.crons.vulnerabilities }}"
|
||||||
|
# EKS Fargate keeps resources running to show the job history.
|
||||||
|
# This saves significantly on compute in AWS.
|
||||||
|
# https://docs.google.com/document/d/1-4KmOlgfGEksNZnQo79a9nRLgM_i7ar2qovoZO3s_6g/edit
|
||||||
successfulJobsHistoryLimit: 0
|
successfulJobsHistoryLimit: 0
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
spec:
|
spec:
|
||||||
|
@ -10,6 +10,9 @@ metadata:
|
|||||||
name: {{ .Values.fleetName }}-migration
|
name: {{ .Values.fleetName }}-migration
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
spec:
|
spec:
|
||||||
|
# This will clean up the job to prevent excess costs when using
|
||||||
|
# EKS/Fargate. See
|
||||||
|
# https://docs.google.com/document/d/1-4KmOlgfGEksNZnQo79a9nRLgM_i7ar2qovoZO3s_6g/edit
|
||||||
ttlSecondsAfterFinished: 100
|
ttlSecondsAfterFinished: 100
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
Loading…
Reference in New Issue
Block a user