mirror of
https://github.com/rancher/rke.git
synced 2025-09-12 21:24:00 +00:00
Don't schedule Linux addons to Windows node
**Problem:** Schedule default-http-backend and metrics-server to Windows node will be failed. **Solution:** Add nodeAffinity to default-http-backend and metrics-server workload spec **Issue:** https://github.com/rancher/rancher/issues/19929
This commit is contained in:
committed by
Alena Prokharchyk
parent
1127a90a9c
commit
d3c89372bf
@@ -275,6 +275,15 @@ spec:
|
||||
labels:
|
||||
app: default-http-backend
|
||||
spec:
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: beta.kubernetes.io/os
|
||||
operator: NotIn
|
||||
values:
|
||||
- windows
|
||||
terminationGracePeriodSeconds: 60
|
||||
containers:
|
||||
- name: default-http-backend
|
||||
|
Reference in New Issue
Block a user