-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add "scheduler.alpha.kubernetes.io/critical-pod" annotation #925
Comments
@Dema That sounds like a great idea. Do you know what K8s version is was introduced in? PRs are of course always welcome 😄 |
The annotation is deprecated as the entire rescheduler will be removed starting from v1.12+. Flagging pods as critical is now done by applying a priorityclass, which is supported for out of resource eviction since v1.9, see the documentation over at https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/ (In v1.11 at least) there are 2 priority classes set up by default:
Which are defined as follows:
It should suffice to add |
@tomdee I'm happy to send a PR for this but are flannel releases tied to k8s releases in any way? Because I believe setting the priority class on kubernetes versions prior to 1.11 without setting |
I just patched the v0.10.0 kube-flannel.yml manifest, adding The manifest was successfully applied and flannel is running as expected. The API server did remove the This leads me to conclude that adding the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
As described in https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-add-on-as-critical
we should add critical-pod annotation for newer kubernetes versions to further ensure that flannel will not be kicked from the node under memory pressure.
Expected Behavior
Pod to stay scheduled and active on the node under memory pressure
Current Behavior
Pod is not being admitted on the node under memory pressure
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
1.9.1 with - --feature-gates=ExperimentalCriticalPodAnnotation=true enabled
Gentoo linux
8G of RAM
The text was updated successfully, but these errors were encountered: