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:
parent
af45190bfb
commit
8113ebda75
@ -13,6 +13,15 @@ spec:
|
||||
labels: {app: lesavka-av-observer}
|
||||
spec:
|
||||
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:
|
||||
kubernetes.io/arch: arm64
|
||||
node-role.kubernetes.io/worker: "true"
|
||||
@ -33,7 +42,8 @@ spec:
|
||||
readOnlyRootFilesystem: true
|
||||
capabilities: {drop: [ALL]}
|
||||
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}
|
||||
readinessProbe:
|
||||
httpGet: {path: /av-test/, port: http}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user