SataQiu
d8b3ada1c1
kubeadm: update supported etcd version list for 1.32
...
Signed-off-by: SataQiu <shidaqiu2018@gmail.com >
2024-08-15 18:23:59 +08:00
Kubernetes Prow Robot
fc64d2abb0
Merge pull request #126374 from pacoxu/ga-etcd-learner-mode
...
[1.32]kubeadm: promote etcd learner mode to GA
2024-08-14 01:59:22 -07:00
Kubernetes Prow Robot
c8259fb116
Merge pull request #126628 from pacoxu/v1beta4-typo
...
fix a typo in kubeadm v1beta4 doc
2024-08-13 22:11:55 -07:00
Kubernetes Prow Robot
e1b1d4ac7b
Merge pull request #126596 from saschagrunert/checks
...
kubeadm: don't warn if `crictl` binary does not exist
2024-08-13 22:11:48 -07:00
Kubernetes Prow Robot
82cfcbf86d
Merge pull request #126579 from my-git9/ut-version
...
kubeadm: increase ut coverage for util/version
2024-08-13 22:11:41 -07:00
Kubernetes Prow Robot
62cd87e839
Merge pull request #126538 from SataQiu/validate-20240805
...
kubeadm: add a validation warning when the certificateValidityPeriod is more than the caCertificateValidityPeriod
2024-08-13 22:11:03 -07:00
Paco Xu
85c3c67094
fix a typo in kubeadm v1beta4 doc
2024-08-12 15:12:20 +08:00
xin.li
42e8446d7e
kubeadm: increase ut coverage for util/version
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2024-08-09 09:23:10 +08:00
Sascha Grunert
d850fb6756
kubeadm: don't warn if crictl binary does not exist
...
kubeadm does not rely on `crictl` any more, so we can now drop the
warning in 1.32 as outlined in:
https://github.com/kubernetes/kubeadm/issues/3064
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2024-08-08 15:28:31 +02:00
SataQiu
506d5c8966
kubeadm: add a validation warning when the certificateValidityPeriod is more than the caCertificateValidityPeriod
2024-08-05 16:15:24 +08:00
Benjamin Elder
8b69990643
kubeadm: bump coredns to 1.11.3
2024-07-29 13:43:04 -07:00
Kubernetes Prow Robot
3a8a60eba2
Merge pull request #126240 from bzsuni/bz/etcd/update/v3.5.15
...
Update etcd to v3.5.15
2024-07-26 04:58:05 -07:00
Paco Xu
bec4c0408c
kubeadm: promote etcd learner mode to GA
2024-07-26 14:02:46 +08:00
Paco Xu
bdb51f28df
fix a typo in kubeadm v1beta4 doc
2024-07-25 22:01:04 +08:00
bzsuni
4ad2cd9299
Update etcd from v3.5.14 to v3.5.15
...
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io >
2024-07-25 10:48:34 +08:00
Kubernetes Prow Robot
815efa2baa
Merge pull request #126250 from my-git9/pkiutil-consot
...
kubeadm: remove unused constants in util/pkiutil
2024-07-21 03:02:57 -07:00
Lubomir I. Ivanov
b90b280c5a
kubeadm: fix join bug where kubeletconfig was not patched in memory
...
During kubeadm join in 1.30 kubeadm started respecting
the kubeletconfiguration healthz address/port. Previously
it hardcoded the health check to localhost:defaultport.
A corner case was not handled where the user applies --patches
on join to modify the local kubeletconfiguration. This results
in kubeletconfiguration patch target patches not being applied to
the KubeletConfiguration in memory and the health check
running on the address:port which are present in the kubelet-config
configmap.
Fix that by explicitly calling a new function to patch the
KubeletConfiguration in memory. This is scoped to only handle
the healthz checks *after* the kubelet config.yaml was already
patched and written to disk.
2024-07-20 19:31:19 +03:00
xin.li
c1dca0ad7c
kubeadm: remove unused constants in util/pkiutil
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2024-07-20 23:30:25 +08:00
Kubernetes Prow Robot
0fa4b9e14c
Merge pull request #126109 from my-git9/staticpod
...
kubeadm: remove unused function in util/staticpod
2024-07-15 23:45:10 -07:00
Christian Schlotter
405fd111c2
kubeadm: use separate phase for changing the kubelet's kubeconfig on upgrade for ControlPlaneKubeletLocalMode
2024-07-15 11:19:21 +02:00
xin.li
fbf8cf41a7
kubeadm: remove unused function in util/staticpod
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2024-07-14 16:57:25 +08:00
Kubernetes Prow Robot
33ccc51cb7
Merge pull request #125780 from chrischdi/pr-kubeadm-control-plane-kubelet-local-init
...
kubeadm: consider feature gate ControlPlaneKubeletLocalMode on init and upgrade
2024-07-12 12:50:16 -07:00
SataQiu
69a2bebc70
kubeadm: fix a bug that ImageExists check returns true when the image isn't in the local storage
2024-07-11 22:42:40 +08:00
SataQiu
d9001c7b00
kubeadm: the '--feature-gates' flag is deprecated and no-op for 'kubeadm upgrade apply/plan'
2024-06-30 11:22:24 +08:00
Alex Stundzia
58ff17bbfa
When using external CA, look for common trust anchor within CA bundle.
2024-06-28 18:04:31 -05:00
Christian Schlotter
8871513c1b
review fixes
2024-06-28 17:15:51 +02:00
Kubernetes Prow Robot
5e331569e4
Merge pull request #125779 from SataQiu/fix-upgrade-diff-20240628
...
kubeadm: fix a bug where the path of the manifest can not be specified when 'upgrade diff' specified a config file
2024-06-28 07:04:00 -07:00
Christian Schlotter
e51b55b451
kubeadm: feature gate ControlPlaneKubeletLocalMode on upgrade
2024-06-28 13:31:26 +02:00
Kubernetes Prow Robot
e832b70230
Merge pull request #125545 from claudiubelu/unittests-12
...
unittests: Fixes unit tests for Windows (part 12)
2024-06-28 03:57:56 -07:00
Christian Schlotter
241c1c7737
kubeadm: feature gate ControlPlaneKubeletLocalMode on init
2024-06-28 12:57:51 +02:00
SataQiu
7c2384d374
kubeadm: mark '--api-server-manifest', '--controller-manager-manifest' and '--scheduler-manifest' as deprecated flags
2024-06-28 18:53:05 +08:00
SataQiu
975f1c978d
kubeadm: fix a bug where the path of the manifest can not be specified when 'upgrade diff' specified a config file
2024-06-28 18:01:19 +08:00
Claudiu Belu
b5e3b81de6
unittests: Fixes unit tests for Windows (part 12)
...
Currently, there are some unit tests that are failing on Windows due
to various reasons:
- IPVS proxy mode is not supported on Windows.
- pkg/kubelet/cri/remote was moved to cri-client.
2024-06-28 08:05:38 +00:00
SataQiu
7120b3902c
kubeadm: improve the error/warning messages of 'validateSupportedVersion' to include the checked resource kind
2024-06-27 18:47:09 +08:00
SataQiu
6190152abd
kubeadm: update the long description about 'kubeadm config' command
2024-06-27 15:54:42 +08:00
Christian Schlotter
038a94804e
kubeadm: implement ControlPlaneKubeletLocalMode
2024-06-24 17:03:33 +02:00
Kubernetes Prow Robot
10ae1dbb52
Merge pull request #125636 from my-git9/certsunused
...
kubeadm: Remove unused function in phases/certs
2024-06-24 02:00:56 -07:00
Kubernetes Prow Robot
498f88803e
Merge pull request #125121 from chendave/emeritus
...
Move myself(chendave) to the list of emeritus
2024-06-24 00:16:56 -07:00
xin.li
71d3f9e249
Remove unused function in phases/certs
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2024-06-22 18:47:28 +08:00
Marko Mudrinić
33466a6606
kubeadm: Add '--yes' flag to the list of allowed flags
...
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com >
2024-06-18 13:04:17 +02:00
Lubomir I. Ivanov
09078d4810
kubeadM: allow conversion of TimeoutForControlPlane
...
v1beta3.ClusterConfiguration.APIServer.TimeoutForControlPlane
must be migrated to {Init|Join}Configuration.Timeouts.
.ControlPlaneComponentHealthCheck.
To achieve this sort of cross-Kind migration do the following:
- Use a temporary, thread-safe variable in timeoututils.go
- Make the order of GVKs in documentMapToInitConfiguration
deterministic.
2024-06-17 10:07:33 +03:00
Lubomir I. Ivanov
4af99cd676
kubeadm: deprecate v1beta3
...
Mark v1beta3 as deprecated by showing a warning when used
and write a note about it in the doc.go file.
2024-06-17 10:07:33 +03:00
Lubomir I. Ivanov
bc92a0dfe9
kubeadm: continue supporting extraArgs flags for v1beta4
...
Flags for kubeadm init such as --apiserver-extra-args prior
to v1beta4 used a map[string]string for pflag.Value storage. This no
longer works since v1beta4 extra args are a slice of Arg.
Add a new flag type argSlice and implement a solution for
parsing these flags.
At the same time deprecate these flags and show a warning
that users should use config.
2024-06-17 10:07:32 +03:00
Lubomir I. Ivanov
cc539cd600
kubeadm: more validation for Upgrade|ResetConfiguration
...
- Add unit tests for ValidateUpgrade|ResetConfiguration
- Add two more validation points in ValidateUpgradeConfiguration
2024-06-17 10:07:32 +03:00
Lubomir I. Ivanov
8a5f849c66
kubeadm: keep v1beta3 only in required code paths
...
Use v1beta4 everywhere and only use v1beta3
in a few required locations:
- kubeadm-config map handling
- unit and integration tests
2024-06-17 10:07:32 +03:00
Lubomir I. Ivanov
d0c656dc19
kubeadm: don't default ExtraEnvs to an empty slice
...
Instead of defaulting ExtraEnvs for CP components to an empty
slice when converting from/to v1beta3 keep it nil.
This allows for expecting a nil value in the internal
config, similarly to ExtraArgs.
2024-06-17 10:07:32 +03:00
Lubomir I. Ivanov
66c7fc5ab4
kubeadm: update migration logic from v1beta3 to 4
...
Treat v1beta4 as non experimental API when migrating.
Update unit tests.
2024-06-17 10:07:32 +03:00
Lubomir I. Ivanov
fb1fcd2d3b
kubeadm: move v1beta4 to high priority in API scheme
2024-06-17 10:07:32 +03:00
Lubomir I. Ivanov
b9f7661ab8
kubeadm: add missing "kubeadm config print upgrade-defaults"
2024-06-17 10:07:32 +03:00
Lubomir I. Ivanov
6544d19796
kubeadm: update godoc and comments for v1beta4
...
- Include some more examples related to v1beta4 in the doc.go.
- Fix some typos in v1beta4 field comments.
- Add missing JSON tag for UpgradeConfiguration.Apply.SkipPhases.
2024-06-17 10:07:32 +03:00