logging: schedule OpenSearch with realistic memory and fallback
This commit is contained in:
parent
80aff49855
commit
3519a54801
@ -71,8 +71,8 @@ spec:
|
||||
opensearchJavaOpts: "-Xms2g -Xmx2g"
|
||||
resources:
|
||||
requests:
|
||||
cpu: "25m"
|
||||
memory: "768Mi"
|
||||
cpu: "500m"
|
||||
memory: "3Gi"
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: "4Gi"
|
||||
@ -89,8 +89,6 @@ spec:
|
||||
node.store.allow_mmap: false
|
||||
nodeSelector:
|
||||
node-role.kubernetes.io/worker: "true"
|
||||
hardware: rpi5
|
||||
kubernetes.io/hostname: titan-05
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
@ -100,5 +98,24 @@ spec:
|
||||
operator: In
|
||||
values:
|
||||
- rpi5
|
||||
- rpi4
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values: [titan-22]
|
||||
# Pi workers first; Titan-22 is the explicit last-resort CPU host.
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- weight: 100
|
||||
preference:
|
||||
matchExpressions:
|
||||
- key: hardware
|
||||
operator: In
|
||||
values: [rpi5]
|
||||
- weight: 50
|
||||
preference:
|
||||
matchExpressions:
|
||||
- key: hardware
|
||||
operator: In
|
||||
values: [rpi4]
|
||||
sysctlInit:
|
||||
enabled: true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user