Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

enable pod priority for kubelet #3743

Merged
merged 2 commits into from
Aug 27, 2018
Merged

enable pod priority for kubelet #3743

merged 2 commits into from
Aug 27, 2018

Conversation

chengliangli0918
Copy link
Contributor

@chengliangli0918 chengliangli0918 commented Aug 24, 2018

https://v1-10.docs.kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#how-to-use-priority-and-preemption
"
Pod priority and preemption is disabled by default in Kubernetes 1.8. To enable the feature, set this command-line flag for the API server, scheduler and kubelet:
--feature-gates=PodPriority=true
"

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:

If applicable:

  • documentation
  • unit tests
  • tested backward compatibility (ie. deploy with previous version, upgrade with this branch)

Release note:

@@ -22,6 +22,7 @@ ExecStart=/usr/local/bin/kubelet \
--node-labels="${KUBELET_NODE_LABELS}" \
--v=2 \
--volume-plugin-dir=/etc/kubernetes/volumeplugins \
--feature-gates=PodPriority=true \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a --feature-gates flag defined in $KUBELET_CONFIG, https://github.com/Azure/acs-engine/blob/master/pkg/acsengine/defaults-kubelet.go would be the right place to change it (look for the addDefaultFeatureGates function

@codecov
Copy link

codecov bot commented Aug 24, 2018

Codecov Report

Merging #3743 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3743      +/-   ##
==========================================
- Coverage   55.49%   55.48%   -0.01%     
==========================================
  Files         108      108              
  Lines       16139    16140       +1     
==========================================
- Hits         8956     8955       -1     
- Misses       6419     6420       +1     
- Partials      764      765       +1

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@mboersma
Copy link
Member

/lgtm

@acs-bot
Copy link

acs-bot commented Aug 27, 2018

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon, chengliangli0918, mboersma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [CecileRobertMichon,mboersma]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@CecileRobertMichon
Copy link
Contributor

CecileRobertMichon commented Aug 27, 2018

/hold let's test back compat before merging

done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants