Commit Graph

12900 Commits

Author SHA1 Message Date
Lubomir I. Ivanov
0010d3992a kubeadm: ensure waiting for apiserver uses a local client
When waiting for the kube-apiserver to report 'ok'
in the 'init' and 'join' phase 'wait-control-plane', a client
constructed from the 'admin.conf' is used. In the case of the
kube-apiserver, the discovery client is used so that
anonymous-auth works. But if 'admin.conf' is used as is,
it would point to the CPE and not the LAE.

Implement a new method WaitControlPlaneClient() for both
init.go and join.go that patches the 'Server' field in the
loaded v1.Config to point to the LAE, before constructing
a client set and using it in the kube-apiserver waiter.
2025-09-25 14:43:45 +02:00
hoteye
1e4e6e10c1 Use context.Background() directly in kubeadm polling API calls
Replace context.TODO() and poll timeout context propagation with direct
context.Background() calls to prevent timeout errors from masking actual
API errors. Affects discovery/file.go, phases/upgrade/health.go, and
util/apiclient/wait.go for consistent error reporting.
2025-09-22 21:37:27 +08:00
Kubernetes Prow Robot
fce5a08b92 Merge pull request #134178 from HirazawaUi/remove-RootlessControlPlane
Kubeadm: Remove RootlessControlPlane feature gate
2025-09-21 09:00:12 -07:00
HirazawaUi
12db1e28dc remove unused file 2025-09-21 00:35:54 +08:00
Kubernetes Prow Robot
d39b162163 Merge pull request #134106 from neolit123/1.35-graduate-ControlPlaneKubeletLocalMode-to-ga
kubeadm: graduate ControlPlaneKubeletLocalMode to GA
2025-09-20 09:02:12 -07:00
HirazawaUi
15b16e0090 Remove RootlessControlPlane feature gate 2025-09-20 22:37:56 +08:00
Kubernetes Prow Robot
09aaf72260 Merge pull request #134124 from danwinship/iptables-setup
drop utiliptables.NewDualStack, which is too confusing
2025-09-19 08:30:12 -07:00
Lubomir I. Ivanov
9d4b91dbd8 kubeadm: cleanup after ControlPlaneKubeletLocalMode 2025-09-18 18:37:23 +02:00
Dan Winship
f8bfcfc885 Drop utiliptables.NewDualStack()
The semantics (sometimes it returns an error that is really just a
warning) are too confusing, and it turns out that we really only need
it in one place (platformCheckSupported()); after that we've already
figured out what IP families are supported, so we could just use
utiliptables.NewBestEffort() instead, knowing we want exactly what it
returns.

So we can just expand the semantics of the old NewDualStack() inline
in the one place we care, without hiding any of it behind a
too-complicated return value.
2025-09-17 20:14:28 -04:00
Lubomir I. Ivanov
56a4306fed kubeadm: graduate ControlPlaneKubeletLocalMode to GA 2025-09-17 15:02:00 +02:00
Aditi Gupta
f58d1e101f refactor(controller): Use WithContext variants in cloud node controllers
This change refactors the cloud-specific versions of the node lifecycle
and node IPAM controllers to use a context.Context for cancellation and
contextual logging, replacing the legacy stopCh pattern.

This is a follow-up to PR #133985, where these controllers were
separated out due to their use in the legacy Cloud Controller Manager
(CCM).

It is a known issue that the CCM's startup logic does not pass the
controller name via the context. This change proceeds with the
refactoring to unify the cancellation logic across controllers, while
acknowledging that contextual logs will be less detailed when these
controllers are run in the CCM.

Signed-off-by: Aditi Gupta <aditigpta@google.com>
2025-09-17 00:17:38 -07:00
Kubernetes Prow Robot
b40d570248 Merge pull request #133988 from bart0sh/PR199-migrate-kubelet-certificate-to-contextual-logging
migrate kubelet/certificate to contextual logging
2025-09-16 02:24:12 -07:00
Kubernetes Prow Robot
8826364a57 Merge pull request #131483 from tallclair/kubeletconfig
Clean up pkg/kubelet/config
2025-09-15 15:54:07 -07:00
Kubernetes Prow Robot
a4981e1cf3 Merge pull request #134007 from carlory/fix-128763
kubeadm: fix KUBEADM_UPGRADE_DRYRUN_DIR not honored in upgrade phase when writing kubelet config files
2025-09-15 06:48:11 -07:00
杨朱 · Kiki
8817dd6529 Update cmd/kubeadm/app/cmd/upgrade/node.go
Co-authored-by: Bing Hongtao <695097494plus@gmail.com>
2025-09-15 20:51:52 +08:00
Kubernetes Prow Robot
aa35105213 Merge pull request #132703 from tchap/kcm-sync-api
kcm/app: Add proper goroutine management
2025-09-15 01:58:11 -07:00
carlory
5dac4ee169 Improve dry-run error messages for clarity 2025-09-15 09:56:13 +08:00
Kubernetes Prow Robot
26b246ae66 Merge pull request #133191 from Jefftree/rev
Add jefftree to OWNERS
2025-09-11 07:06:11 -07:00
carlory
97cd1c2408 replace fmt.Printf with fmt.Fprintf
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-09-11 16:43:46 +08:00
carlory
96463c1e9a kubeadm: fix the KUBEADM_UPGRADE_DRYRUN_DIR environment variable doesn't work forthe upgrade phase when it writes kubelet config files to disk
Signed-off-by: carlory <baofa.fan@daocloud.io>
Co-authored-by: Lubomir I. Ivanov <neolit123@gmail.com>
2025-09-11 15:57:47 +08:00
Kubernetes Prow Robot
5cef241d82 Merge pull request #133218 from nmn3m/kube-controller-manager-statuz
adds a list of available HTTP endpoints for the kube-controller-manag…
2025-09-10 11:48:22 -07:00
Ondra Kupka
9e60e3593e kcm/app: Add proper goroutine management
Make sure no goroutines can leak in the app package that manages
controller starting/termination.
2025-09-10 16:21:36 +02:00
Ed Bartosh
bf0429ed07 migrate kubelet/certificate to contextual logging 2025-09-10 12:33:33 +03:00
Kubernetes Prow Robot
f26c1326e2 Merge pull request #133957 from bart0sh/PR199-migrate-server-to-contextual-logging
Migrate kubelet/server to contextual logging
2025-09-09 19:29:57 -07:00
Kubernetes Prow Robot
a8905a154b Merge pull request #133179 from nmn3m/fix-strings-title
Replace deprecated strings.Title with cases.Title
2025-09-09 05:53:30 -07:00
Ed Bartosh
b276c96ef8 Migrate kubelet/server to contextual logging 2025-09-09 12:49:42 +03:00
Kubernetes Prow Robot
08946ca255 Merge pull request #132606 from Peac36/fix/132539
add paths section to scheduler statusz endpoint
2025-09-08 07:39:31 -07:00
Kubernetes Prow Robot
597a684bb0 Merge pull request #133172 from ania-borowiec/move_handle_and_plugin
Move interfaces: Handle and Plugin and related types from kubernetes/kubernetes to staging repo kube-scheduler
2025-09-08 06:05:31 -07:00
Nikola
b42b96f518 add paths section to scheduler statusz endpoint
Signed-off-by: Nikola <peac36@abv.bg>
2025-09-08 13:13:42 +03:00
Kubernetes Prow Robot
d9b31d602d Merge pull request #133893 from HirazawaUi/close-connections
Kubeadm: Close container runtime connections after use
2025-09-06 01:35:24 -07:00
HirazawaUi
8118636321 Close container runtime connections after use 2025-09-06 14:42:36 +08:00
Kubernetes Prow Robot
1166dcb0ef Merge pull request #130154 from zhifei92/watchdog-migrate-structured-logging
chore(kubelet): migrate watchdog to contextual logging
2025-09-05 14:37:26 -07:00
zhangzhifei16
f1b28b0d1f chore(kubelet): migrate watchdog to contextual logging
fix: fix failed typecheck

fix unit test
2025-09-05 21:40:44 +08:00
Kubernetes Prow Robot
b86ff94014 Merge pull request #132960 from benluddy/webhook-client-content-type
Configure JSON content type for generic webhook RESTClient.
2025-09-02 08:01:15 -07:00
Ania Borowiec
fadb40199f Move interfaces: Handle and Plugin and related types from kubernetes/kubernetes to staging repo kube-scheduler 2025-09-02 09:42:53 +00:00
Nour
72847ee1f7 Replace deprecated strings.Title with cases.Title 2025-08-30 18:16:59 +03:00
Kubernetes Prow Robot
546519987d Merge pull request #132288 from thevilledev/chore/coredns-v1.12.2
chore: update CoreDNS to v1.12.3
2025-08-28 06:55:10 -07:00
Kubernetes Prow Robot
23acc94870 Merge pull request #129986 from djboris9/patch-1
fix(kubelet-windows): Typo in structured log user display name fixed
2025-08-28 00:29:09 -07:00
Kubernetes Prow Robot
52d089e653 Merge pull request #133667 from neolit123/1.34-clarify-some-api-fields
kubeadm: clarify the comments for a few API fields
2025-08-27 20:24:14 -07:00
Kubernetes Prow Robot
782b3bb172 Merge pull request #133596 from michaelasp/realFIFOSVM
Require Storage Version Migrator to be Gated Behind RealFIFO
2025-08-27 20:23:30 -07:00
Kubernetes Prow Robot
4f0ce131a3 Merge pull request #133513 from tom1299/fix_missing_controlplanehealthcheck
Add missing conversion for timeoutForControlPlane
2025-08-27 18:30:31 -07:00
Kubernetes Prow Robot
48db4470cc Merge pull request #133347 from SataQiu/clean-20250801
kubeadm: simplify error handling in getAPIEndpointWithRetry
2025-08-27 17:17:49 -07:00
Predrag Rogic
f2170bc6c3 kube-proxy: log but don't exit if ipv4 or ipv6 is not available 2025-08-26 16:11:12 +01:00
Lubomir I. Ivanov
16d4f9ea1f kubeadm: clarify the comments for a few API fields
- Make it clear that FeatureGates are kubeadm-specific
- Add note that custom etcd image results in etcd upgrade skip
- Explain how is ClusterName is used
2025-08-23 16:24:57 +02:00
Michael Aspinwall
770b749436 feat: Require SVM to use RealFIFO 2025-08-19 16:41:22 +00:00
tom1299
b46a5cceef Fix missing control plane health check timeout 2025-08-19 13:49:02 +02:00
Ben Luddy
0b16f0ae3c Test that auth{z,n} hook clients honor Kubelet's request encoding.
Kubelets can make a high volume of SubjectAccessReview and TokenReview requests via authn and authz
webhooks. Its default encoding, Protobuf, mitigates the serialization cost of these requests when
compared to client-go's default encoding, JSON. This test provides some insurance against changes to
webhook client construction that might cause the webhook clients to fail to respect Kubelet's
configured content type.
2025-08-14 13:26:49 -04:00
Ville Vesilehto
aa819af85a chore: update CoreDNS to v1.12.3
Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
2025-08-13 08:52:10 +03:00
Nour
d4bd007d3b adds a list of available HTTP endpoints for the kube-controller-manager component under the /statusz page 2025-08-11 22:51:59 +03:00
Tim Allclair
bd900111a8 Move ContainerRuntimeOptions flags to cmd/kubelet/app/options 2025-08-06 12:12:08 -07:00