Skip to content

Commit

Permalink
feat(helm): add resources for garbage collector cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
donch committed Aug 9, 2024
1 parent 5fe3ef2 commit 0639134
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
containers:
- name: kubectl
image: "{{ .Values.registry.garbageCollection.image.repository }}:{{ .Values.registry.garbageCollection.image.tag }}"
resources:
{{- toYaml .Values.registry.garbageCollection.resources | nindent 16 }}
imagePullPolicy: {{ .Values.registry.garbageCollection.image.pullPolicy }}
command:
- bash
Expand Down
12 changes: 12 additions & 0 deletions helm/kube-image-keeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,18 @@ registry:
schedule: "0 0 * * 0"
# -- If true, delete untagged manifests. Default to false since there is a known bug in **docker distribution** garbage collect job.
deleteUntagged: false
# -- Resources settings for the garbage collector pod
resources:
requests:
# -- Cpu requests for the garbage collector pod
cpu: "10m"
# -- Memory requests for the garbage collector pod
memory: "10Mi"
limits:
# -- Cpu limits for the garbage collector pod
cpu: "1"
# -- Memory limits for the garbage collector pod
memory: "512Mi"
image:
# -- Cronjob image repository
repository: bitnami/kubectl
Expand Down

0 comments on commit 0639134

Please sign in to comment.