bstein: prefer the observer worker with cached images

The previous rollout stalled resolving Docker Hub on titan-19. Static nginx uses 1 MiB. Reserve 8 MiB for it so the existing worker can accommodate the rolling overlap, preserving the existing container limits and worker eligibility.
This commit is contained in:
jenkins 2026-12-03 12:16:50 -06:00
parent af45190bfb
commit 8113ebda75

View File

@ -13,6 +13,15 @@ spec:
labels: {app: lesavka-av-observer} labels: {app: lesavka-av-observer}
spec: spec:
automountServiceAccountToken: false automountServiceAccountToken: false
# This worker already holds both pinned ARM64 images. Keep other workers
# eligible when it has insufficient capacity.
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- {key: kubernetes.io/hostname, operator: In, values: [titan-07]}
nodeSelector: nodeSelector:
kubernetes.io/arch: arm64 kubernetes.io/arch: arm64
node-role.kubernetes.io/worker: "true" node-role.kubernetes.io/worker: "true"
@ -33,7 +42,8 @@ spec:
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
capabilities: {drop: [ALL]} capabilities: {drop: [ALL]}
resources: resources:
requests: {cpu: 10m, memory: 16Mi} # Static nginx used 1 MiB during the previous rollout.
requests: {cpu: 10m, memory: 8Mi}
limits: {cpu: 100m, memory: 64Mi} limits: {cpu: 100m, memory: 64Mi}
readinessProbe: readinessProbe:
httpGet: {path: /av-test/, port: http} httpGet: {path: /av-test/, port: http}