Skip to content
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

kubeadm: apply resource requests in the etcd pod spec #94479

Conversation

knight42
Copy link
Member

@knight42 knight42 commented Sep 3, 2020

Signed-off-by: knight42 anonymousknight96@gmail.com

What type of PR is this?

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes kubernetes/kubeadm#2195

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

kubeadm: make etcd pod request 100m CPU, 100Mi memory and 100Mi ephemeral_storage by default

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. area/kubeadm sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Sep 3, 2020
@knight42
Copy link
Member Author

knight42 commented Sep 3, 2020

/cc @neolit123
/priority backlog

@k8s-ci-robot k8s-ci-robot added priority/backlog Higher priority than priority/awaiting-more-evidence. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Sep 3, 2020
@@ -247,6 +248,14 @@ func GetEtcdPodSpec(cfg *kubeadmapi.ClusterConfiguration, endpoint *kubeadmapi.A
staticpodutil.NewVolumeMount(etcdVolumeName, cfg.Etcd.Local.DataDir, false),
staticpodutil.NewVolumeMount(certsVolumeName, cfg.CertificatesDir+"/etcd", false),
},
Resources: v1.ResourceRequirements{
Requests: v1.ResourceList{
// TODO: make these values configurable
Copy link
Member

@neolit123 neolit123 Sep 3, 2020

Choose a reason for hiding this comment

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

please remove this TODO for now.
users can use the --experimental-patches functionality to apply patches during init/join/upgrade.
the patches feature can one day be in the kubeadm config too.

@neolit123
Copy link
Member

/retitle kubeadm: apply resource requests in the etcd pod spec
/approve

@k8s-ci-robot k8s-ci-robot changed the title feat(kubeadm): specify resource requests in etcd pod spec kubeadm: apply resource requests in the etcd pod spec Sep 3, 2020
@neolit123
Copy link
Member

/cc @rosti @ereslibre
PTAL

@neolit123
Copy link
Member

/hold for review

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 3, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: knight42, neolit123

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:

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 3, 2020
Signed-off-by: knight42 <anonymousknight96@gmail.com>
@knight42 knight42 force-pushed the feat/kubeadm-etcd-pod-resource-requests branch from cc073f9 to 2ebd293 Compare September 4, 2020 03:54
@knight42
Copy link
Member Author

knight42 commented Sep 4, 2020

/retest

@neolit123
Copy link
Member

we didn't get immediate objections on kubernetes/kubeadm#2195 so let's see how this goes.

/hold cancel
/milestone v1.20

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 4, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.20 milestone Sep 4, 2020
@neolit123
Copy link
Member

/lgtm
thanks @knight42

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 4, 2020
@knight42
Copy link
Member Author

knight42 commented Sep 4, 2020

/retest

@k8s-ci-robot k8s-ci-robot merged commit 0edbf25 into kubernetes:master Sep 4, 2020
@knight42 knight42 deleted the feat/kubeadm-etcd-pod-resource-requests branch September 4, 2020 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/kubeadm cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/backlog Higher priority than priority/awaiting-more-evidence. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

etcd pod spec should include requests for memory, cpu, etc
3 participants