-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
kubeadm: add separate page for configuring / migrating cgroup driver #26786
kubeadm: add separate page for configuring / migrating cgroup driver #26786
Conversation
Deploy preview for kubernetes-io-master-staging ready! Built with commit 987e065 https://deploy-preview-26786--kubernetes-io-master-staging.netlify.app |
987e065
to
206051a
Compare
Deploy preview for kubernetes-io-vnext-staging processing. Building with commit 2355094 https://app.netlify.com/sites/kubernetes-io-vnext-staging/deploys/6041616fcd3a3b0008b4d609 |
/sig cluster-lifecycle |
{{< note >}} | ||
If the user is not setting the `cgroupDriver` field under `KubeletConfiguration`, | ||
`kubeadm init` will default it to `systemd`. | ||
{{< /note >}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is new to kubeadm 1.21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add "starting for v1.21" and "for older releases, the user should executed following steps manually"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think the point of the versioned docs (this PR is targeting dev-1.21) is that all details apply to the target release - i.e. 1.21.
maybe we can use some sort of version tag for this.
will defer to sig-docs for this question.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added: {{< feature-state for_k8s_version="v1.21" state="stable" >}}
inside the note.
not sure if that is the preferred way.
f562dea
to
d3a2e15
Compare
content/en/docs/tasks/administer-cluster/kubeadm/configure-cgroup-driver.md
Outdated
Show resolved
Hide resolved
{{< note >}} | ||
If the user is not setting the `cgroupDriver` field under `KubeletConfiguration`, | ||
`kubeadm init` will default it to `systemd`. | ||
{{< /note >}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add "starting for v1.21" and "for older releases, the user should executed following steps manually"
/assign |
/hold until kubernetes/kubernetes#99471 merges |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you, @neolit123!
|
||
- Drain the node using `kubectl drain <node-name> --ignore-daemonsets` | ||
- Stop the kubelet using `systemctl stop kubelet` | ||
- Stop the container runtime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes, we need to clean up the container runtime dir.
Not sure if this is needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from my tests this was not needed.
we can update the guide after this PR merges if we find gaps.
content/en/docs/tasks/administer-cluster/kubeadm/configure-cgroup-driver.md
Outdated
Show resolved
Hide resolved
LGTM |
content/en/docs/setup/production-environment/container-runtimes.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some nit.
content/en/docs/tasks/administer-cluster/kubeadm/configure-cgroup-driver.md
Show resolved
Hide resolved
content/en/docs/tasks/administer-cluster/kubeadm/configure-cgroup-driver.md
Show resolved
Hide resolved
content/en/docs/tasks/administer-cluster/kubeadm/configure-cgroup-driver.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/administer-cluster/kubeadm/configure-cgroup-driver.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/administer-cluster/kubeadm/configure-cgroup-driver.md
Outdated
Show resolved
Hide resolved
- Add the new page "Configuring a cgroup driver" The page includes details on how to configure the cgroup driver using kubeadm. It also includes a migration guide for users to move to the "systemd" driver. - Link to the new page from install-kubeadm.md and container-runtimes.md
d3a2e15
to
2355094
Compare
updated the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
can we please remove
because of #22916 (comment) |
--- | ||
kind: KubeletConfiguration | ||
apiVersion: kubelet.config.k8s.io/v1beta1 | ||
cgroupDriver: systemd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2?utm_source=godoc uses
apiVersion: kubeadm.k8s.io/v1beta2
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
cgroup-driver: "cgroupfs"
to define the cgroupfs.
Confusing...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use kubeletExtraArgs, because the cgroup-driver flag is deprecated.
this new page has the right config example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand. However, this is very confusing, so where is an actual full reference for the kubeadm-kubelet-config-file to configure everything in one file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are also the support forums and #kubeadm on the k8s slack for users that need help:
https://github.com/kubernetes/kubernetes/blob/master/SUPPORT.md
i will send a PR to remove the kubeletExtraArgs examples in https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2?utm_source=godoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are also the support forums and #kubeadm on the k8s slack for users that need help:
https://github.com/kubernetes/kubernetes/blob/master/SUPPORT.md
I know. But the docs should be the first place to search, shouldn't it?
i will send a PR to remove the kubeletExtraArgs examples in https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2?utm_source=godoc
👍
yes, we can. |
thanks! |
/hold cancel |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: binchenX, onlydole, reylejano 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
LGTM label has been added. Git tree hash: 630c4c5b6529d926dd8822d7581032fd826dd520
|
The page includes details on how to configure the cgroup driver
using kubeadm. It also includes a migration guide for users to
move to the "systemd" driver.
xref
kubernetes/kubeadm#2376
kubernetes/kubernetes#99471
xref #22916
note: this is targeting the 1.21 release