Skip to content

Commit

Permalink
feat(helm): add affinity and tolerations to GC pod
Browse files Browse the repository at this point in the history
  • Loading branch information
alykhachov authored and paullaffitte committed Oct 18, 2024
1 parent 89317f8 commit 721548d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ spec:
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.registry.garbageCollection.affinity }}
affinity:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.registry.garbageCollection.tolerations }}
tolerations:
{{- toYaml . | nindent 12 }}
{{- end }}
containers:
- name: kubectl
image: "{{ .Values.registry.garbageCollection.image.repository }}:{{ .Values.registry.garbageCollection.image.tag }}"
Expand Down
4 changes: 4 additions & 0 deletions helm/kube-image-keeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ registry:
deleteUntagged: false
# -- Specify a nodeSelector for the garbage collector pod
nodeSelector: {}
# -- Affinity for the garbage collector pod
affinity: {}
# -- Toleration for the garbage collector pod
tolerations: []
# -- Deadline for the whole job
activeDeadlineSeconds: 600
# -- Resources settings for the garbage collector pod
Expand Down

0 comments on commit 721548d

Please sign in to comment.