-
Notifications
You must be signed in to change notification settings - Fork 38.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not use annotation for pod affinity #45318
Comments
/assign |
@gyliu513 probably will want to move the init container also to the PodSpec |
I think the init container still depend on annotations https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ , can I specify in |
Seems like that the doc should be updated. EDIT:
|
Thanks @xiaopengzhao I filed an issue here kubernetes/website#3649 |
@ethernetdan @a-robinson What about merge this first and then handle init-container in a separate PR? |
Sounds good to me, thanks. |
Automatic merge from submit-queue (batch tested with PRs 45322, 44770, 45411) Put podAntiAffinity in PodSpec. **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: In 1.6, we moved the `affinity` from `annotations` to `PodSpec`, but the `annotations` still works with `AffinityInAnnotations=true`. Please check https://docs.google.com/document/d/1YP3OJTKMpXkWAhipPjx9-bDMxJ87JZ6AcVak7c3SGos/edit for detail. **Release note**: ```release-note ``` Fixed #45318
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):
What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Kubernetes version (use
kubectl version
):master
Environment:
uname -a
):What happened:
Check https://github.com/kubernetes/kubernetes/blob/master/examples/cockroachdb/cockroachdb-statefulset.yaml#L80-L96 , it is still using
scheduler.alpha.kubernetes.io/affinity
, we should move it toPodSpec
.What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
The text was updated successfully, but these errors were encountered: