From 1517dec30b431978153a17e49bb74a1d7186a795 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Sat, 10 Jan 2026 23:57:26 -0300 Subject: [PATCH] maintenance: run image sweeper on all nodes --- services/maintenance/image-sweeper-cronjob.yaml | 10 ++++++++-- services/maintenance/node-image-sweeper-daemonset.yaml | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/services/maintenance/image-sweeper-cronjob.yaml b/services/maintenance/image-sweeper-cronjob.yaml index c1bd132..08127bc 100644 --- a/services/maintenance/image-sweeper-cronjob.yaml +++ b/services/maintenance/image-sweeper-cronjob.yaml @@ -16,8 +16,14 @@ spec: serviceAccountName: node-image-sweeper restartPolicy: OnFailure nodeSelector: - kubernetes.io/arch: arm64 - node-role.kubernetes.io/worker: "true" + kubernetes.io/os: linux + tolerations: + - key: node-role.kubernetes.io/control-plane + operator: Exists + effect: NoSchedule + - key: node-role.kubernetes.io/master + operator: Exists + effect: NoSchedule containers: - name: image-sweeper image: python:3.12.9-alpine3.20 diff --git a/services/maintenance/node-image-sweeper-daemonset.yaml b/services/maintenance/node-image-sweeper-daemonset.yaml index 03e46e8..c3cb24d 100644 --- a/services/maintenance/node-image-sweeper-daemonset.yaml +++ b/services/maintenance/node-image-sweeper-daemonset.yaml @@ -16,9 +16,15 @@ spec: app: node-image-sweeper spec: serviceAccountName: node-image-sweeper + tolerations: + - key: node-role.kubernetes.io/control-plane + operator: Exists + effect: NoSchedule + - key: node-role.kubernetes.io/master + operator: Exists + effect: NoSchedule nodeSelector: - kubernetes.io/arch: arm64 - node-role.kubernetes.io/worker: "true" + kubernetes.io/os: linux containers: - name: node-image-sweeper image: python:3.12.9-alpine3.20