Skip to content

Commit

Permalink
feat(helm): add nodeSelector to GC pod
Browse files Browse the repository at this point in the history
  • Loading branch information
donch authored and Nicolasgouze committed Aug 27, 2024
1 parent 482dc6b commit ee3c2c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ spec:
spec:
serviceAccountName: {{ include "kube-image-keeper.fullname" . }}-registry-restart
restartPolicy: Never
{{- with .Values.registry.garbageCollection.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
containers:
- name: kubectl
image: "{{ .Values.registry.garbageCollection.image.repository }}:{{ .Values.registry.garbageCollection.image.tag }}"
Expand Down
2 changes: 2 additions & 0 deletions helm/kube-image-keeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ 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
# -- Specify a nodeSelector for the garbage collector pod
nodeSelector: {}
# -- Resources settings for the garbage collector pod
resources:
requests:
Expand Down

0 comments on commit ee3c2c1

Please sign in to comment.