Kubernetes Prow Robot
548d50da98
Merge pull request #125157 from carlory/kubeadm-2563
...
kubeadm: update warning message for the swap check
2024-06-03 04:20:55 -07:00
carlory
f5c69fde39
kubeadm: update warning message for the swap check
...
Co-authored-by: Lubomir I. Ivanov <neolit123@gmail.com >
2024-06-03 17:09:20 +08:00
Kubernetes Prow Robot
2d8a3ad572
Merge pull request #125265 from neolit123/1.31-use-actual-kubelet-address-port
...
kubeadm: use the actual configured kubelet healthz address:port
2024-06-02 23:14:32 -07:00
Lubomir I. Ivanov
52302e4ad5
kubeadm: use the actual configured kubelet healthz address:port
...
When doing a kubelet health check on init/join, do not
hardcode the "localhost" address. Instead, use the
KubeletConfiguration HealthzBindAddress and HealthzPort
fields.
2024-06-01 10:10:31 +03:00
Humble Chirammal
07ef65a834
make use of etcd v3.5.14 in the builds.
...
https://github.com/etcd-io/etcd/releases/tag/v3.5.14
This release has been built with GO 1.21.10
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com >
2024-06-01 09:06:35 +05:30
Kubernetes Prow Robot
8565e37525
Merge pull request #125127 from my-git9/ut-compute
...
kubeadm: increase ut coverage for compute
2024-05-31 02:41:37 -07:00
xin.li
d24d82eda9
kubeadm: increase ut coverage for compute
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2024-05-31 16:39:51 +08:00
Kubernetes Prow Robot
b503409e9c
Merge pull request #124363 from claudiubelu/unittests-11
...
unittests: Fixes unit tests for Windows (part 11)
2024-05-30 08:17:24 -07:00
Kubernetes Prow Robot
2acdbae664
Merge pull request #125178 from my-git9/unusedfunction
...
kubeadm: remove some unused function
2024-05-30 06:47:02 -07:00
Sascha Grunert
51a36294a3
kubeadm: check only for RuntimeReady
condition
...
We only check for the `RuntimeReady` condition instead of anything else
like the `NetworkReady` to allow kubeadm to provision the cluster.
Refers to https://github.com/kubernetes/kubernetes/pull/124685#issuecomment-2138655482
Follow-up on: https://github.com/kubernetes/kubernetes/pull/124685
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2024-05-30 08:33:22 +02:00
Kubernetes Prow Robot
83c2db067e
Merge pull request #125179 from SataQiu/clean-20240528
...
kubeadm: only add the klog flags that are still supported for kubeadm, rather than disabling the unwanted flags
2024-05-29 20:14:55 -07:00
Kubernetes Prow Robot
da02fdb2ae
Merge pull request #123339 from skitt/canonical-json-patch
...
Update kustomize, use canonical json-patch v4 import
2024-05-29 08:02:24 -07:00
Kubernetes Prow Robot
529896474f
Merge pull request #124688 from neolit123/1.31-always-rotate-etcd-certs-on-upgrade
...
kubeadm: ensure that etcd certs are rotated on apiserver upgrade
2024-05-29 05:10:30 -07:00
Kubernetes Prow Robot
afebfdc5d4
Merge pull request #125158 from mttrb/kubeadm-grammar
...
Fix grammar in kubeadm output
2024-05-29 03:30:45 -07:00
Lubomir I. Ivanov
f4d5e1d65d
kubeadm: ensure that etcd certs are rotated on apiserver upgrade
...
Currently if etcd.yaml does not have a diff on "kubeadm upgrade"
certificate renewal for it is also skipped.
Check if kube-apiserver.yaml needs an upgrade, if so and if
cert renewal is not disabled, renew etcd's certs and restart
its static pod.
2024-05-29 13:07:41 +03:00
Sascha Grunert
7d1bfd9872
Make kubeadm
independent from crictl
...
With the new `cri-client` staging repository it's finally possible to
decouple `kubeadm` from `crictl`.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2024-05-29 08:58:01 +02:00
SataQiu
7f30b3494b
kubeadm: only add the klog flags that are still supported for kubeadm, rather than disabling the unwanted flags
2024-05-29 12:38:21 +08:00
xin.li
7771a58b46
kubeadm: remove some unused function
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2024-05-29 11:26:36 +08:00
Stephen Kitt
5300466a5c
Use canonical json-patch v4 import
...
The canonical import for json-patch v4 is
gopkg.in/evanphx/json-patch.v4 (see
https://github.com/evanphx/json-patch/blob/master/README.md#get-it for
reference).
Using the v4-specific path should also reduce the risk of unwanted v5
upgrade attempts, because they won't be offered as automated upgrades
by dependency upgrade management tools, and they won't happen through
indirect dependencies (see
https://github.com/kubernetes/kubernetes/pull/120327 for context).
Signed-off-by: Stephen Kitt <skitt@redhat.com >
2024-05-28 10:48:22 +02:00
Matthew Robinson
8b1b32f226
Fix grammar in kubeadm output
2024-05-28 11:55:23 +08:00
Lubomir I. Ivanov
5e290ebc90
switch k/k to pause version 3.10
2024-05-24 10:02:51 +03:00
Kubernetes Prow Robot
25b3912c0d
Merge pull request #124997 from neolit123/1.31-deprecate-rootless-cp-fg
...
kubeadm: deprecate the RootlessControlPlane feature gate
2024-05-22 19:40:50 -07:00
Kubernetes Prow Robot
44c45484e0
Merge pull request #124465 from neolit123/1.31-add-etcd-livez-readyz
...
kubeadm: use etcd 3.5.11's /livez and /readyz endpoints for probes
2024-05-21 04:40:23 -07:00
Lubomir I. Ivanov
4a6d3187fa
kubeadm: deprecate the RootlessControlPlane feature gate
...
The feature was left in alpha for a few releases, since
k8s started planning on a broader feature UserNamespacesSupport,
which is what kubeadm should integrate with.
UserNamespacesSupport graduated to beta in 1.30.
Once it graduates to GA kubeadm can start using it an remove
RootlessControlPlane.
2024-05-20 16:55:11 +03:00
Kubernetes Prow Robot
a31030543c
Merge pull request #124920 from kimsehwan96/update-an-incorrect-comment-in-kubeadm-controlplane-join-phase
...
Update an incorrect comment in kubeadm controlplane join phase
2024-05-17 06:03:51 -07:00
Kubernetes Prow Robot
67012614c3
Merge pull request #124442 from neolit123/1.31-add-image-pull-policy-to-upgrade-config
...
kubeadm: support image pull mode and policy in UpgradeConfiguration
2024-05-16 20:12:52 -07:00
kimsehwan96
894a838a1a
Update an incorrect comment in kubeadm controlplane join phase
2024-05-17 12:09:42 +09:00
Claudiu Belu
e90cfb83ed
unittests: Fixes unit tests for Windows (part 11)
...
Currently, there are some unit tests that are failing on
Windows due to various reasons:
- Cannot remove a directory if there's a file open in that directory.
- Paths may have / or \ on Windows.
2024-05-16 12:36:49 +00:00
Kubernetes Prow Robot
22f3ce5e5e
Merge pull request #124820 from SataQiu/feat-kubeadm-20240511
...
kubeadm: add support for patching a corednsdeployment target
2024-05-16 02:38:22 -07:00
Lubomir I. Ivanov
df87a503c2
kubeadm: use UpgradeNodeConfiguration.IgnorePreflightErrors
...
When using UpgradeNodeConfiguration.IgnorePreflightErrors the field
is currently ignored in favor of the "defualted" field created
by configutil.FetchInitConfigurationFromCluster.
Fix this bug.
2024-05-16 11:34:39 +03:00
Lubomir I. Ivanov
0faa2bfbc1
kubeadm: support image pull mode and policy in UpgradeConfiguration
...
Add Upgrade{Apply|Node}Configuration.{ImagePullPolicy|ImagePullSerial}.
The same feature already exists in NodeRegistrationOptions for
{Init|Join}Configuration.
2024-05-16 11:34:39 +03:00
carlory
7582a768b7
kubeadm: remove outdate todo
2024-05-13 12:08:57 +08:00
SataQiu
1329935739
kubeadm: add support for patching a corednsdeployment target
2024-05-11 18:21:20 +08:00
Kubernetes Prow Robot
eeb42fa543
Merge pull request #124678 from my-git9/dns-test-54
...
kubeadm: increase ut coverage for addon/dns
2024-05-08 21:46:39 -07:00
Kubernetes Prow Robot
78bc18dcb0
Merge pull request #124715 from SataQiu/fix-kubeadm-20240507
...
kubeadm: remove deprecated UpgradeAddonsBeforeControlPlane featuregate
2024-05-07 13:29:24 -07:00
Kubernetes Prow Robot
72786649b6
Merge pull request #124652 from neolit123/1.31-add-cert-expiration-v1beta4
...
kubeadm: add support for custom cert validity period in v1beta4
2024-05-07 10:38:51 -07:00
SataQiu
6f94700886
kubeadm: remove deprecated UpgradeAddonsBeforeControlPlane featuregate
2024-05-07 09:24:10 +08:00
xin.li
d1dff562ad
kubeam: increase ut coverage for addon/dns
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2024-05-03 21:21:06 +08:00
SataQiu
1c82e03c2a
kubeadm: remove unused CreateKubeConfigFileFunc type
2024-05-03 16:19:51 +08:00
Lubomir I. Ivanov
d105ddd350
kubeadm: update the IsPriviligedUser preflight check on Windows
...
Use GetCurrentProcessToken() instead of checking the groups of a user.
The Go stdlib way of fetching the groups of an user appears
to be failing on some Windows setups. Which could be a regression
in later Go versions, or simply the code does not work on certain
setups.
2024-05-02 20:23:02 +03:00
Lubomir I. Ivanov
74e1438d86
kubeadm: add support for custom cert validity period in v1beta4
...
Allow the user to pass custom cert validity period with
ClusterConfiguration.CertificateValidityPeriod and
CACertificateValidityPeriod.
The defaults remain 1 year for regular cert and 10 years for CA.
Show warnings if the provided values are more than the defaults.
Additional changes:
- In "certs show-expiration" use HumanDuration() to print
more detailed durations instead of ShortHumanDuration().
- Add a new kubeadm util GetStartTime() which can be used
to consistently get a UTC time for tasks like writing certs
and unit tests.
- Update unit tests to validate the new customizable NotAfter.
2024-05-01 19:01:49 +03:00
Kubernetes Prow Robot
29a4812f03
Merge pull request #124080 from claudiubelu/skip-windows-tests
...
Skip failing Windows tests
2024-05-01 07:48:12 -07:00
Kubernetes Prow Robot
bae83009d3
Merge pull request #124503 from neolit123/1.31-convert-create-job-preflight-to-warning
...
kubeadm: check for available nodes during 'CreateJob' preflight
2024-04-26 08:49:26 -07:00
Lubomir I. Ivanov
786ad3ca81
kubeadm: check for available nodes during 'CreateJob' preflight
...
Instead of erroring during the preflight check 'CreateJob'
from "upgrade" commands when there are no schedulable nodes,
show a warning.
This can happen in single node clusters.
Also increase the Job TTL after completion to 20 seconds
to make sure it's more than the timeout what waits
for the Job to complete.
2024-04-26 12:18:02 +03:00
Kubernetes Prow Robot
ba05a8deb3
Merge pull request #124419 from neolit123/1.31-deprecate-experimental-cert-rotation
...
kubeadm: mark the phase 'experimental-cert-rotation' as deprecated
2024-04-25 23:28:39 -07:00
SataQiu
328c5edaeb
kubeadm: enable KubernetesReleaseVersion test
2024-04-26 11:30:51 +08:00
Claudiu Belu
2be8baeaef
unittests: Skip failing Windows tests
...
Some of the unit tests are currently failing on Windows.
Skip them for now, and remove the skips later, once the underlying issues
have been resolved.
2024-04-25 14:24:16 +00:00
Kubernetes Prow Robot
17854f0e0a
Merge pull request #124496 from carlory/output-alpha3
...
kubeadm: remove the deprecated output.kubeadm.k8s.io/v1alpha2
2024-04-24 21:02:51 -07:00
Kubernetes Prow Robot
646fbe6d0a
Merge pull request #124480 from neolit123/1.31-fix-upgrade-component-config
...
kubeadm: fix bug of kubeletconfig not being downloaded on upgrade
2024-04-24 01:20:24 -07:00
Kubernetes Prow Robot
5291c11a0e
Merge pull request #124468 from neolit123/1.31-improve-unit-test-performance-with-test-versions
...
kubeadm: improve performance of unit tests that need a k8s version
2024-04-24 01:20:17 -07:00