Commit Graph

112 Commits

Author SHA1 Message Date
carlory 138f347175 Update UserNamespaceSupport feature gate name
Kubernetes-commit: a56378d9fcb936a52a98e7ddbf1c3749db5d4b20
2025-04-29 16:15:41 +08:00
Anish Ramasekar 560bf1d9f1 clarify mutual exclusivity of service account annotation keys in godoc
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>

Kubernetes-commit: f7e82d8059d29a279740a03ca2d9a76615632d5d
2025-03-25 17:30:42 -07:00
carlory 2459d5bcd7 Remove general available feature-gate CPUManager
Signed-off-by: carlory <baofa.fan@daocloud.io>

Kubernetes-commit: 0882efaf8e6b6a7dcef325e28b19bbea3ad6e646
2024-12-19 14:30:07 +08:00
Francesco Romani 91db061239 node: kep-2625: cpu manager policy options GA
Move the support for CPUManager Policy Options to GA

Signed-off-by: Francesco Romani <fromani@redhat.com>

Kubernetes-commit: 3c7ed00e2248da6a7825be93638d0ef28019ab0d
2025-03-03 11:00:30 +01:00
Akihiro Suda 9685938ad2 kubelet: config: add userNamespaces.idsPerPod
IDsPerPod is the mapping length of subids for UserNS.
The length must be multiple of 65536.
Default: 65536

Implements kubernetes/enhancements PR 5020 (addendum to KEP-127)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>

Kubernetes-commit: 1592bfa4a81182ffb2ad599d600778e92564e3c0
2025-02-07 16:25:52 +09:00
Stanislav Láznička d47f656667 make update
Kubernetes-commit: 0ca233384622f8e5080f38db6b8a4c9e70db6dfa
2024-10-09 15:02:13 +02:00
Stanislav Láznička c9a655749b kubelet: modify KubeletConfiguration API with image pull policies
Also adds PreloadedImagesVerificationAllowlist to API exceptions list
for missing list type as this is not a part of the REST API.

Kubernetes-commit: 47827f4d9a51d3bcc0ed0a6893969d00d45cce22
2024-10-15 17:04:36 +02:00
Stanislav Láznička 317a26d34c imagepullmanager: add v1alpha1 config API
Kubernetes-commit: 37e0fd50aac2a1860839ece6f256b74c4f73a012
2024-10-09 14:38:25 +02:00
Anish Ramasekar acdd50b0ce Add TokenAttributes field to v1 CredentialProvider
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>

Kubernetes-commit: ba2eecca0d25425d0705972bce8af886af56ecf4
2024-10-17 11:46:24 -07:00
vaibhav2107 2b1c54bf39 Added the mergeDefaultEvictionSettings Kubelet Config
Kubernetes-commit: a97c6a70451b9c3c9665235f5bd322895a895706
2024-09-24 01:54:07 +05:30
Anish Ramasekar e29f7ad7db update credential provider godoc with unique provider name req
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>

Kubernetes-commit: 92e35e7618ff30e1c8e79f5efb3788dfedf24bb3
2025-01-16 14:54:37 -08:00
Kevin Hannon 44bca84fc0 add documentation that 0s duration will be overwritten for 5m
Kubernetes-commit: 0899cf892d4c675102ba85e6e916c7d6c9d5eb1d
2025-01-09 09:49:35 -05:00
Aravindh Puthiyaparambil c1ed15a27c kubelet: use env vars in node log query PS command
- Use environment variables to pass string arguments in the node log
  query PS command
- Split getLoggingCmd into getLoggingCmdEnv and getLoggingCmdArgs
  for better modularization

Kubernetes-commit: 12345a14c345c6b1992db5130b8c219956cb0439
2024-08-06 15:46:15 -07:00
Patrick Ohly 74b7ed0014 remove import doc comments
The "// import <path>" comment has been superseded by Go modules.
We don't have to remove them, but doing so has some advantages:

- They are used inconsistently, which is confusing.
- We can then also remove the (currently broken) hack/update-vanity-imports.sh.
- Last but not least, it would be a first step towards avoiding the k8s.io domain.

This commit was generated with
   sed -i -e 's;^package \(.*\) // import.*;package \1;' $(git grep -l '^package.*// import' | grep -v 'vendor/')

Everything was included, except for
   package labels // import k8s.io/kubernetes/pkg/util/labels
because that package is marked as "read-only".

Kubernetes-commit: 8a908e0c0bd96a3455edf7e3b5f5af90564e65b0
2024-12-02 14:43:58 +01:00
lauralorenz 3b14f64fe5 KEP-4603: Node specific kubelet config for maximum backoff down to 1 second (#128374)
* Add feature gate, API, and conflict validation tests for enablecrashloopbackoffmax

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Handle when current base is longer than node max

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Update pkg/features/kube_features.go

Co-authored-by: Tsubasa Nagasawa <toversus2357@gmail.com>

* Fix indentation

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Follow convention for success test

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Normalize casing, and change field to Duration

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Fix json name and some other casing errors

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Another one I missed before

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Don't clobber global max function

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Change to flat value in defaults.go

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Streamline validation and defaults

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Fix typecheck

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Lint

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Tighten up validation for subsecond values

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Rename field from MaxBackOffPeriod to MaxContainerRestartPeriod

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* A few missed references to renames

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Only compare flags in flags test

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Don't mess with SetDefault signature

Nobody messes with SetDefault signature

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Fix stale signature change, and update test data

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Inspect current feature gates at defaulting time

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Don't use the global feature gate for temp usage

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Expose default error, and some comments

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Hint fuzzer for less arbitrary values to FeatureGates

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

---------

Signed-off-by: Laura Lorenz <lauralorenz@google.com>
Co-authored-by: Tsubasa Nagasawa <toversus2357@gmail.com>

Kubernetes-commit: 7fe41da5221b215d097e930c6b7aa52e88324f66
2024-11-08 17:44:43 -08:00
utam0k 59c28f5e21 kubelet: new kubelet config option for disabling group oom kill
Signed-off-by: utam0k <k0ma@utam0k.jp>

Kubernetes-commit: 4f909c14a0b32dba90d5c28f2937964aaf20677a
2024-10-14 14:46:28 +09:00
tu1h 2191782a26 API docs: point outdate link to current link
Signed-off-by: tu1h <lihai.tu@daocloud.io>

Kubernetes-commit: 73e7dc65e108343167def679e3c3b2c9a841de32
2024-07-22 11:52:40 +08:00
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
Dixita Narang 3e4dabbdb4 Fixing the year of creation of the new files
Kubernetes-commit: 52a9c1d5599e733a4393fa2552387ea46e9c4bae
2022-09-08 06:18:15 +00:00
Dixita Narang f111908a77 Adding files generated from running make generate and update commands
Kubernetes-commit: 875920037a072ec9b34d598795a69f5c3ea8eaa3
2022-09-07 21:35:46 +00:00
Dixita Narang b08fd49123 Renaming usage of v1beta1 to v1, and adding API violation exceptions and
vendor module for v1

Kubernetes-commit: 977a8ebb3a4be17d14c11476c27bd77a80e8ef32
2022-08-01 19:21:30 +00:00
Dixita Narang be0bf1c6ed Copying over credentialprovider v1beta1 packages to v1
Kubernetes-commit: 87f1102ee92a0a37bc6ffaba0d2b68a6689f980d
2022-08-01 18:18:02 +00: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 3660344705 kubelet tracing: generated files
Signed-off-by: Sally O'Malley <somalley@redhat.com>

Kubernetes-commit: 5b4456ceeaa8db1a9e8e33c34d0e634ebd884188
2022-07-11 18:15:38 -04: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