Commit Graph

77 Commits

Author SHA1 Message Date
HirazawaUi 536faf8bc4 remove useless comments
Kubernetes-commit: 49058ee799bb0fb6f72461576257a5d108300359
2024-01-28 21:58:34 +08:00
Harshal Patil 776d934bca Kubelet option to disable cgroup v1 support
Signed-off-by: Harshal Patil <harpatil@redhat.com>

Kubernetes-commit: fff2b7f5666d3bb9fadd2d3731b6072c83f0c2a8
2024-06-17 14:24:12 -04:00
Kevin Hannon 877b73430b add no swap as the default option for swap
Kubernetes-commit: 6a4e19a4ec9e11b77c9357375df4cadd8229836f
2024-01-12 14:42:51 -05:00
Maksym Pavlenko 911ff5cb6e Update comments and error messages
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>

Kubernetes-commit: 19d9405a1c3c383b9e1a6f9c69e09ecd97d99a8f
2023-02-17 09:26:41 -08:00
Maksym Pavlenko c16ee65406 Add PodLogsPath to kubelet config
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>

Kubernetes-commit: d9e2487d0c3f1d62e9702af98c3a9acc5b1dde32
2022-10-07 13:54:52 -07:00
Harsha Narayana 895dfa5e5a kubelet: enable configurable rotation duration and parallel rotate
Kubernetes-commit: ab8c784ee970d72b03fd1c2ed7c228914e17e954
2022-12-06 11:37:50 +05:30
Peter Hunt ea9e3fa84e kubelet: add and use ImageMaximumGCAge in KubeletConfiguration
Signed-off-by: Peter Hunt <pehunt@redhat.com>

Kubernetes-commit: d992ea4b309a30efed4feef21773e65d2d6477ea
2023-10-06 12:43:37 -04:00
Dan Winship 1486708f08 Deprecate now-unused kubelet iptables flags
Kubernetes-commit: f1e7386fbc4008e8079ff0d3eb142c935ec3ba57
2023-07-17 09:37:17 -04:00
Leonard Cohnen de5777f47a Add note about TLS 1.3 cipher suites
Kubernetes-commit: 13354d3da4db4496b236da9feb215b6597a1af12
2023-01-30 14:42:45 +01:00
Sascha Grunert 42fd1fca7c Graduate KubeletTracing feature to beta
We now graduate `KubeletTracing` to beta, which means we enable the
feature gate per default.

Part of https://github.com/kubernetes/enhancements/issues/2831

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>

Kubernetes-commit: a28385ebe28ffa692e4b407b109d83018b0e5df7
2023-02-14 09:58:06 +01:00
Aravindh Puthiyaparambil 63e98f1aef api: Add EnableNodeLogQuery to KubeletConfiguration
Added EnableNodeLogQuery field to kubelet/apis/config/types.go and
staging/src/k8s.io/kubelet/config/v1beta1/types.go, then executed.
 `hack/update-codegen.sh`.

This new field will default to off and will need to be explicitly
enabled in addition to the NodeLogQuery gate to use the feature.

Kubernetes-commit: aadad094101e4b69f8b3fc245925ad630f90f337
2023-03-06 14:38:33 -08:00
Paco Xu fd9fb8c1b9 default memoryThrottlingFactor to 0.9 and optimize the memory.high calculation formulas
Kubernetes-commit: 7dab6253e1d644c28200db57d215afda9dc7182c
2023-01-28 17:35:29 +08:00
Swati Sehgal c3986d6a8a node: topologymgr: remove comments with feature gate references
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>

Kubernetes-commit: ae964a493feb4671f0c311630730f9092a65d5b0
2023-03-07 09:42:54 +00:00
Wojciech Tyczyński a72956acbe Bump QPS limits for Kubelet
Kubernetes-commit: 760acbbbe3341aba248828d1057b0a4001b7ee1b
2023-02-28 09:30:52 +01:00
ruiwen-zhao d187b24b59 Add MaxParallelImagePulls support
Signed-off-by: ruiwen-zhao <ruiwen@google.com>

Kubernetes-commit: 572e6e0ffb3d40cc9ac94dc6776c9381f0e0f358
2023-01-19 23:52:57 +00:00
Sascha Grunert e880dbe1d0 Graduate SeccompDefault feature to stable / GA
Updating the required code and docs for SeccompDefault to go GA, which
now means that we enable the feature per default.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>

Kubernetes-commit: 37caed0e1957b1b6a8b2b96e44c7dc04b5b30fb3
2023-02-13 10:20:49 +01:00
Paco Xu 2c7b25a1f7 API docs: point to current docs instead of archived designs
Kubernetes-commit: 3d536bd14bba0586f20d1d96560073e5d9e82f97
2023-02-16 15:29:56 +08:00
Paco Xu fa61aac152 archived design proposals are now moved to Design Proposals Archive Repo.
Kubernetes-commit: 019d2615af3f7fd0ed0d593ef9df348f6d85b204
2023-02-08 11:12:22 +08:00
songxiao-wang87 f3ea2b86c0 Making a run test.
Signed-off-by: songxiao-wang87 <wang.xiaosong23@zte.com.cn>

Kubernetes-commit: 3e6b954290be790c18166c4559f7ad442d84eb63
2023-01-31 09:38:48 +00:00
Paco Xu 34abc5b842 remove a flag check that was introduced in #112542; address several comments
Signed-off-by: Paco Xu <paco.xu@daocloud.io>

Kubernetes-commit: f28f40e52134cc819f511eabb59357eb97a8a623
2022-10-12 02:09:19 +08:00
Aditi Sharma 694c09e825 Migrate container runtime endpoint flag to config
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>
Signed-off-by: Paco Xu <paco.xu@daocloud.io>

Kubernetes-commit: 214a0ee7b8ca6d3528123e2bf9ddfbc2233f4b16
2022-03-16 18:01:26 +05:30
PiotrProkop cc981e28e6 Improved multi-numa alignment in Topology Manager: add topology-manager-policy-options flag in Kubelet
This patch adds new Kubelet option topologyManagerPolicyOptions.
To introduce new TopologyManager options, first we need to introduce new
flag called `topology-manager-policy-options` to allow users to modify
behaviour of best-effort and restricted policies.

Signed-off-by: PiotrProkop <pprokop@nvidia.com>

Kubernetes-commit: daee219210afa5ae3a00fa4767f1f7ab9df8af62
2022-10-07 14:52:22 +02:00
Monis Khan 868606f43a Use https links for k8s KEPs, issues, PRs, etc
Signed-off-by: Monis Khan <mok@microsoft.com>

Kubernetes-commit: b738be9b46a899571303c8c887e32bf4d5b71a0a
2022-09-23 16:13:22 -04:00
Dmitry Verkhoturov 96ee3e6a98 clarify CPUCFSQuotaPeriod values, set the minimum to 1ms
cpu.cfs_period_us is measured in microseconds in the kernel but
provided in time.Duration by the user, that change clarifies the code
to make this evident to the reader.

Also, the minimum value for that feature is 1ms and not 1μs, and this
change alters the validation to reject values smaller than 1ms.

Kubernetes-commit: d0f9e6dc36fb0f6cfff95988e27eb3796c4e6bce
2022-08-30 15:05:56 +02:00
Antonio Ojea a26021ade1 Revert "change CPUCFSQuotaPeriod default value to 100us to match Linux default"
This reverts commit f2d591fae62822a8e96b0e015e6e42224286b5d5.

Kubernetes-commit: d434c588d7ea23d77f3802a42be6368c7a711819
2022-08-26 23:44:07 +02:00
Dmitry Verkhoturov 687bd99550 change CPUCFSQuotaPeriod default value to 100us to match Linux default
cpu.cfs_period_us is 100μs by default despite having an "ms" unit
for some unfortunate reason. Documentation:
https://www.kernel.org/doc/html/latest/scheduler/sched-bwc.html#management

The desired effect of that change is to match
k8s default `CPUCFSQuotaPeriod` value (100ms before that change)
with one used in k8s without the `CustomCPUCFSQuotaPeriod` flag enabled
and Linux CFS (100us, 1000x smaller than 100ms).

Kubernetes-commit: f2d591fae62822a8e96b0e015e6e42224286b5d5
2022-07-29 23:11:25 +02:00
jinxu c807a973da Promote Local storage capacity isolation feature to GA
This change is to promote local storage capacity isolation feature to GA

At the same time, to allow rootless system disable this feature due to
unable to get root fs, this change introduced a new kubelet config
"localStorageCapacityIsolation". By default it is set to true. For
rootless systems, they can set this configuration to false to disable
the feature. Once it is set, user cannot set ephemeral-storage
request/limit because capacity and allocatable will not be set.

Change-Id: I48a52e737c6a09e9131454db6ad31247b56c000a

Kubernetes-commit: 0064010cddfa009fe16ae23fcd0c57f4f15d227c
2022-07-28 08:03:20 -07:00
Sally O'Malley 301f67bf19 kubelet tracing
Signed-off-by: Sally O'Malley <somalley@redhat.com>
Co-authored-by: David Ashpole <dashpole@google.com>

Kubernetes-commit: 47e7d8034ff3be8e198dde6a671d05a11c30e333
2021-10-10 09:17:27 -04:00
saltbo e810486689 fix: update the typo code comment
Kubernetes-commit: d2bab218ddef3fc3f444038420dd500c0e8bc068
2022-07-13 10:16:51 +08:00
Patrick Ohly 1e9c97c387 logs: make LoggingConfiguration an unversioned API
Making the LoggingConfiguration part of the versioned component-base/config API
had the theoretic advantage that components could have offered different
configuration APIs with experimental features limited to alpha versions (for
example, sanitization offered only in a v1alpha1.KubeletConfiguration). Some
components could have decided to only use stable logging options.

In practice, this wasn't done. Furthermore, we don't want different components
to make different choices regarding which logging features they offer to
users. It should always be the same everywhere, for the sake of consistency.

This can be achieved with a saner Go API by dropping the distinction between
internal and external LoggingConfiguration types. Different stability levels of
indidividual fields have to be covered by documentation (done) and potentially
feature gates (not currently done).

Advantages:

- everything related to logging is under component-base/logs;
  previously this was scattered across different packages and
  different files under "logs" (why some code was in logs/config.go
  vs. logs/options.go vs. logs/logs.go always confused me again
  and again when coming back to the code):

  - long-term config and command line API are clearly separated
    into the "api" package underneath that

  - logs/logs.go itself only deals with legacy global flags and
    logging configuration

- removal of separate Go APIs like logs.BindLoggingFlags and
  logs.Options

- LogRegistry becomes an implementation detail, with less code
  and less exported functionality (only registration needs to
  be exported, querying is internal)

Kubernetes-commit: 1aceac797d404b4ac3b3d02fe43d495d1f645aba
2021-10-07 16:38:21 +02:00
Fabio Bertinatto d5b86b77f5 Update EnableControllerAttachDetach documentation
The kubelet does not support attach/detach operations on CSI volumes. As
a result, CSI volumes rely on the Attach/Detach controller enabled.

Kubernetes-commit: 8150cf8d96035c789068778e42568887de777063
2022-02-21 14:28:15 -03:00
Aditi Sharma f53431b6d9 Move feature flag credential provider to beta
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>

Kubernetes-commit: ed16ef22061a8246236e0049a34d7cf305462e34
2022-03-21 17:55:07 +05:30
Sergey Kanzhelev bffb442f57 remove DynamicKubeletConfig logic from kubelet
Kubernetes-commit: 7e7bc6d53b021be6fe3d5a1125a990913b7a9028
2022-01-14 00:40:57 +00:00
Shiming Zhang 0dc0452847 Add field for KubeletConfiguration and Regenerate
Kubernetes-commit: d82f6069708ff25ecff48464bee82bc570b55641
2021-11-17 11:46:51 +08:00
caozhiyuan 394f21e52e migrate --register-with-taints to KubeletConfiguration
Kubernetes-commit: bad4faf1b9d69d3cb6e8de90dc5eee1d8cf0b6d3
2021-10-04 09:17:10 +08:00
Shiming Zhang c899544ccb Fix typo in kubelet config
Kubernetes-commit: bcf03ff41af91b9000d9addb6db9b00abf147a10
2021-07-26 15:04:46 +08:00
Author cyclinder 804346f8b9 remove nodeLease feature GA
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>

Kubernetes-commit: e61b9016289109cb54a81e38090ac04b2a3b2dc2
2021-09-24 11:07:53 +08:00
Haleygo 064333e8cd support null resolvConf in Kubelet Configuration
Kubernetes-commit: 46454ea9dcd2f48863518244ed687b0d880d7daf
2021-08-27 14:28:32 +08:00
Elana Hashman 5a25826406 Rename NodeSwapEnabled flag to NodeSwap
Kubernetes-commit: 642eff0c69db98f54e7d2cc8be62cf4292c75705
2021-07-07 13:25:43 -07:00
Sergey Kanzhelev d704a05875 update the help text of KubeletConfig following the DynamicKubletConfig feature deprecation
Kubernetes-commit: 7da1a0b2304e3af13b0c992b8019faed437fe7ed
2021-07-08 16:38:11 +00:00
Swati Sehgal 8265e3d5d3 smtalign: add cpu-manager-policy-options flag in Kubelet
In this patch we enhance the kubelet configuration to support
cpuManagerPolicyOptions.

In order to introduce SMT-awareness in CPU Manager, we introduce a
new flag in Kubelet to allow the user to specify an additional flag
called `cpumanager-policy-options` to allow the user to modify the
behaviour of static policy to strictly guarantee allocation of whole
core.

Co-authored-by: Francesco Romani <fromani@redhat.com>
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>

Kubernetes-commit: cc76a756e409d08959b8b6e623e317619399f015
2021-04-26 20:24:30 +01:00
Li Bo 8a01668e25 feature: support Memory QoS for cgroups v2
Kubernetes-commit: c3d9b10ca834b88516c6e059eb038eae19266ddf
2021-06-17 20:11:58 +08:00
Sergey Kanzhelev a7f99079d8 deprecate and disable by default DynamicKubeletConfig feature flag
Kubernetes-commit: dffc2a60a28c6a61ee0af638c011d60f3b8413f2
2021-06-17 22:14:46 +00:00
Elana Hashman ac22b208bd Rename NoSwap to LimitedSwap as workloads may still swap
Also made the options a kubelet type, address API review feedback

Kubernetes-commit: d3fd1362ca141ca515abf5b0e60141418d3c64b2
2021-06-17 16:03:31 -07:00
Elana Hashman 061cebb097 API change: add MemorySwap to KubeletConfiguration
Kubernetes-commit: bda03b4818d4cd329ced48fd016c803585a5a958
2021-06-11 17:08:53 -07:00
Qiming Teng fd6badeeb4 Tweak kubelet config comments for consistency and readability
Kubernetes-commit: 2d3073c5917d90d57b0a6a67e8b402d4c7e7d0be
2020-11-19 11:35:26 +08:00
Qiming Teng 07683320f5 Improve kubelet config type documentation
Kubernetes-commit: fdcbb54febd229305582733679b9eb24c6b17988
2020-11-05 13:57:58 +08:00
Sascha Grunert 762f5ef191 Add SeccompDefault feature
This adds the gate `SeccompDefault` as new alpha feature. Seccomp path
and field fallbacks are now passed to the helper functions, whereas unit
tests covering those code paths have been added as well.

Beside enabling the feature gate, the feature has to be enabled by the
`SeccompDefault` kubelet configuration or its corresponding
`--seccomp-default` CLI flag.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>

Apply suggestions from code review

Co-authored-by: Paulo Gomes <pjbgf@linux.com>
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>

Kubernetes-commit: 8b7003aff4c81f124851041eafb8899ea7e83ffd
2021-05-12 11:20:30 +02:00
David Porter 8fd5ebff85 Promote kubelet graceful node shutdown to beta
- Change the feature gate from alpha to beta and enable it by default

- Update a few of the unit tests due to feature gate being enabled by
  default

- Small refactor in `nodeshutdown_manager` which adds `featureEnabled`
  function (which checks that feature gate and that
  `kubeletConfig.ShutdownGracePeriod > 0`).

- Use `featureEnabled()` to exit early from shutdown manager in the case
  that the feature is disabled

- Update kubelet config defaulting to be explicit that
  `ShutdownGracePeriod` and `ShutdownGracePeriodCriticalPods` default to
  zero and update the godoc comments.

- Update defaults and add featureGate tag in api config godoc.

With this feature now in beta and the feature gate enabled by default,
to enable graceful shutdown all that will be required is to configure
`ShutdownGracePeriod` and `ShutdownGracePeriodCriticalPods` in the
kubelet config. If not configured, they will be defaulted to zero, and
graceful shutdown will effectively be disabled.

Kubernetes-commit: 893f5fd4f007775d48536cae192d79f209eeeac2
2021-03-02 15:41:50 -08:00
Sri Saran Balaji Vellore Rajakumar de5214f74b Add support to disable /debug/pprof and /debug/flags/v endpoint
Co-authored-by: xiaofei.sun <sunxiaofei@kuaishou.com>
Co-authored-by: SaranBalaji90 <srisaranbalaji@gmail.com>

Kubernetes-commit: 51cdf4e97bbd03b353dcb852d6b9c39642f4f7a8
2021-01-23 09:16:39 -08:00