From c77f42ddcc13d3fc8e01c15670dccb9260a80089 Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Thu, 30 Mar 2023 17:51:39 +0800 Subject: [PATCH] add some details to make the kep more substantial --- .../3929-no-cri-socket-annotation/README.md | 80 ++++++------------- 1 file changed, 25 insertions(+), 55 deletions(-) diff --git a/keps/sig-cluster-lifecycle/kubeadm/3929-no-cri-socket-annotation/README.md b/keps/sig-cluster-lifecycle/kubeadm/3929-no-cri-socket-annotation/README.md index 2c15263b40a..c4bfbddb132 100644 --- a/keps/sig-cluster-lifecycle/kubeadm/3929-no-cri-socket-annotation/README.md +++ b/keps/sig-cluster-lifecycle/kubeadm/3929-no-cri-socket-annotation/README.md @@ -128,9 +128,9 @@ checklist items _must_ be updated for the enhancement to be released. Items marked with (R) are required *prior to targeting to a milestone / release*. -- [ ] (R) Enhancement issue in release milestone, which links to KEP dir in [kubernetes/enhancements] (not the initial KEP PR) +- [x] (R) Enhancement issue in release milestone, which links to KEP dir in [kubernetes/enhancements] (not the initial KEP PR) - [ ] (R) KEP approvers have approved the KEP status as `implementable` -- [ ] (R) Design details are appropriately documented +- [x] (R) Design details are appropriately documented - [ ] (R) Test plan is in place, giving consideration to SIG Architecture and SIG Testing input (including test refactors) - [ ] e2e Tests for all Beta API Operations (endpoints) - [ ] (R) Ensure GA e2e tests meet requirements for [Conformance Tests](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/conformance-tests.md) @@ -202,6 +202,16 @@ cri socket in kubelet configuration. ## Design Details +We should introduce a `/var/lib/kubelet/kubeadm-config.yaml` to maintain node specific configuration. +It is similar to `/var/lib/kubelet/kubeadm-flags.env`. + +```text +KUBELET_KUBEADM_ARGS="--container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --pod-infra-container-image=k8s.m.daocloud.io/pause:3.9" +``` + +[To be discussed] Another proposal is using a strategy like `--patch`. A file like `/var/lib/kubelet/kubeadm-config.patch` +or a `kubelet.yaml`/`config.ayml` file under `/var/lib/kubelet/patch/`. (This should be removed if we make a decision). + ### init: upload a global kubelet configuration with cri socket - `kubeadm init` will not add the annotation to node. @@ -239,10 +249,15 @@ when drafting this test plan. [testing-guidelines]: https://git.k8s.io/community/contributors/devel/sig-testing/testing.md --> -[ ] I/we understand the owners of the involved components may require updates to +[x] I/we understand the owners of the involved components may require updates to existing tests to make this code solid enough prior to committing the changes necessary to implement this enhancement. +Install/Join/Upgrade test in + +- upgrade v1.(n-1) to v1.n. +- upgrade v1.n to v1.n. + ##### Prerequisite testing updates - ### Upgrade / Downgrade Strategy - +See above. ### Version Skew Strategy @@ -435,14 +405,14 @@ well as the [existing list] of feature gates. --> - [ ] Feature gate (also fill in values in `kep.yaml`) - - Feature gate name: + - Feature gate name: No - Components depending on the feature gate: - [ ] Other - Describe the mechanism: - Will enabling / disabling the feature require downtime of the control - plane? + plane? No. - Will enabling / disabling the feature require downtime or reprovisioning - of a node? (Do not assume `Dynamic Kubelet Config` feature is enabled). + of a node? No. ###### Does enabling the feature change any default behavior?