Dave Chen
41b8536a50
kubeadm: try to reuse RunData
if possible
...
The generation of `RunData` for init and join is relative time consuming,
the data should be shared / reused whenever possible.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-09-21 13:35:15 +08:00
Dave Chen
1bb44a8e78
kubeadm: too early return for reset with dry-run or force mode
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-09-01 17:02:27 +08:00
Kubernetes Prow Robot
253acfc8bc
Merge pull request #112142 from SataQiu/fix-cm-20220831
...
controller-manager: remove deprecated insecure serving from Config
2022-08-31 06:57:01 -07:00
SataQiu
1ae5237a66
controller-manager: remove deprecated insecure serving from Config
2022-08-31 17:32:21 +08:00
Octopusjust
48c8183fc4
cmd/kubeadm/:add test file for data.go ( #112122 )
...
Update data_test.go
according to the modification suggestions
Update data_test.go
according to the modification suggestions
2022-08-31 01:43:00 -07:00
Kubernetes Prow Robot
4f66f8c408
Merge pull request #112069 from enj/enj/t/aggregated_apis
...
Expand aggregated API server integration test to include CRUD
2022-08-30 08:52:55 -07:00
Monis Khan
ec283e526b
Expand aggregated API server integration test to include CRUD
...
This change updates TestAggregatedAPIServer and the related test
server wiring to exercise the full network path between the Kube API
server and the aggregated API server. We now assert that the wardle
API service and Kube API server discovery endpoints are fully healthy.
CRUD operations are performed through the Kube API server to the
wardle API server.
Signed-off-by: Monis Khan <mok@microsoft.com >
2022-08-30 10:44:01 -04:00
Maciej Szulik
04b4908b18
Add soltysh as cmd/kcm approver
2022-08-30 09:39:01 +02:00
Kubernetes Prow Robot
6e3d62ca1c
Merge pull request #111904 from pandaamanda/controller_codeclean
...
refactor: move attachdetach controller param validation ahead
2022-08-29 14:12:49 -07:00
Kubernetes Prow Robot
891cbede96
Merge pull request #110972 from chendave/cleanup_data
...
kubeadm: unify the way to cleanup the files for `kubeadm reset`
2022-08-29 00:44:36 -07:00
Kubernetes Prow Robot
50097acf15
Merge pull request #112008 from pacoxu/kubeadm-taint
...
Kubeadm cleanup for taint / toleration with master label
2022-08-28 19:58:36 -07:00
SataQiu
8e4cf3b8d2
kubeadm: move show-join-command as a separate phase
2022-08-26 23:35:58 +08:00
Paco Xu
f445764969
fix a flag replace of container-runtime=remote
2022-08-26 19:18:42 +08:00
Dave Chen
71ef1ea68d
Cleanup etcd data dir on best effort basis
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-08-26 11:55:19 +08:00
Dave Chen
f180a3f265
Move the logic of file cleanup within each phase
...
Guarantee that stale files are removed if end user resets cluster
by resetting each phase.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-08-26 11:30:49 +08:00
Kubernetes Prow Robot
bc9f48b841
Merge pull request #112024 from cndoit18/remove-redundant-judgment
...
style: remove redundant judgment
2022-08-25 07:28:18 -07:00
Paco Xu
04e0c6c160
kubeadm: do not need to remove old taint as v1.25 upgrade will remove it
2022-08-25 22:24:44 +08:00
Paco Xu
4daf5f903b
kubeadm: cleanup master related taint and tolerations
2022-08-25 22:22:20 +08:00
Kubernetes Prow Robot
b87a436aed
Merge pull request #112000 from pacoxu/kubeadm-cleanup
...
kubeadm: remove container-runtime=remote
2022-08-25 05:14:18 -07:00
Kubernetes Prow Robot
8206c9d458
Merge pull request #111458 from muyangren2/addtest_common
...
add test to isKubeadmConfigPresent method
2022-08-25 03:52:06 -07:00
Paco Xu
f9643b69f3
cleanup kubelet config file: kubeadm-flags.env to remove container-runtime flag
2022-08-25 17:55:37 +08:00
Paco Xu
5974da784c
kubeadm: remove container-runtime=remote
2022-08-25 17:10:39 +08:00
cndoit18
ec43037d0f
style: remove redundant judgment
...
Signed-off-by: cndoit18 <cndoit18@outlook.com >
2022-08-25 12:07:36 +08:00
Kubernetes Prow Robot
f313ef501a
Merge pull request #111833 from ialidzhikov/cleanup/cmd-kube-proxy
...
cmd/kube-proxy: Replace deprecated func usage from the `k8s.io/utils/pointer` pkg
2022-08-24 13:31:49 -07:00
Kubernetes Prow Robot
2a8eff983e
Merge pull request #112006 from pacoxu/kubeadm-registry-name-cleanup
...
kubeadm: remove MutateImageRepository for registry change
2022-08-24 12:01:49 -07:00
Kubernetes Prow Robot
4bf457ea95
Merge pull request #112005 from pacoxu/kubeadm-dup-unix-prefix
...
kubeadm: revert dedup prefix unix:// in node annotation
2022-08-24 05:52:14 -07:00
Kubernetes Prow Robot
da112dda68
Merge pull request #111806 from danwinship/kube-proxy-no-mode-fallback
...
remove kube-proxy mode fallback
2022-08-24 05:52:03 -07:00
Paco Xu
db0d55e1e6
kubeadm: remove MutateImageRepository for registry change
2022-08-24 17:47:51 +08:00
Paco Xu
09d3255572
kubeadm: revert dedup prefix unix:// in node annotation
2022-08-24 17:35:05 +08:00
Kubernetes Prow Robot
dabb1c5f93
Merge pull request #111949 from chymy/kubeadm-version-test
...
kubeadm: add test cases for version_test.go
2022-08-23 22:33:49 -07:00
Kubernetes Prow Robot
7f8f035ae8
Merge pull request #111836 from ialidzhikov/cleanup/cmd-kubeadm
...
cmd/kubeadm: Replace deprecated func usage from the `k8s.io/utils/pointer` pkg
2022-08-23 20:08:00 -07:00
Kubernetes Prow Robot
48b5b9d6a0
Merge pull request #111801 from SataQiu/fix-kubeproxy-20220811
...
kube-proxy: optimize the format of the flag usage string
2022-08-23 19:00:51 -07:00
Kubernetes Prow Robot
17e03f858e
Merge pull request #111783 from SataQiu/fix-kubeadm-20220810
...
kubeadm: try to load CA cert from external CertificateAuthority file when CertificateAuthorityData is empty for existing kubeconfig
2022-08-23 19:00:36 -07:00
Kubernetes Prow Robot
07bca2d791
Merge pull request #67782 from dims/yank-in-tree-openstack-cloud-provider
...
Remove in-tree openstack cloud provider
2022-08-23 18:59:48 -07:00
Kubernetes Prow Robot
94c70776ee
Merge pull request #111656 from Octopusjust/k8s-pr7
...
Add test for cmd/kubeadm/app/cmd/util/cmdutil.go
2022-08-23 17:16:40 -07:00
Davanum Srinivas
9bbf01bae9
Remove references to openstack and cinder
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2022-08-22 16:43:14 -04:00
chymy
08d4748de2
kubeadm: add test cases for version_test.go
...
Signed-off-by: chymy <chang.min1@zte.com.cn >
2022-08-22 02:56:35 +00:00
pandaamanda
3d87919a1e
refactor: move attachdetach controller param validation ahead
2022-08-18 08:56:57 +00:00
Dan Winship
946ce55b04
kube-proxy: use API constants for proxy modes rather than local redefinitions
2022-08-16 09:30:42 -04:00
Dan Winship
1609017f2b
kube-proxy: remove ipvs-to-iptables fallback
...
If the user passes "--proxy-mode ipvs", and it is not possible to use
IPVS, then error out rather than falling back to iptables.
There was never any good reason to be doing fallback; this was
presumably erroneously added to parallel the iptables-to-userspace
fallback (which only existed because we had wanted iptables to be the
default but not all systems could support it).
In particular, if the user passed configuration options for ipvs, then
they presumably *didn't* pass configuration options for iptables, and
so even if the iptables proxy is able to run, it is likely to be
misconfigured.
2022-08-16 09:30:08 -04:00
Dan Winship
9f69a3a9d4
kube-proxy: remove iptables-to-userspace fallback
...
Back when iptables was first made the default, there were
theoretically some users who wouldn't have been able to support it due
to having an old /sbin/iptables. But kube-proxy no longer does the
things that didn't work with old iptables, and we removed that check a
long time ago. There is also a check for a new-enough kernel version,
but it's checking for a feature which was added in kernel 3.6, and no
one could possibly be running Kubernetes with a kernel that old. So
the fallback code now never actually falls back, so it should just be
removed.
2022-08-16 09:21:34 -04:00
Dan Winship
477d14e53b
Reorganize "kube-proxy --cleanup-and-exit"
...
This was implemented partly in server.go and partly in
server_others.go even though even the parts in server.go were totally
linux-specific. Simplify things by putting it all in server_others.go
and get rid of some unnecessary abstraction.
2022-08-16 09:16:05 -04:00
ialidzhikov
76bf5a41cf
cmd/kubeadm: Replace deprecated func usage from the k8s.io/utils/pointer
pkg
2022-08-14 12:49:45 +03:00
ialidzhikov
17c14ced18
cmd/kube-proxy: Replace deprecated func usage from the k8s.io/utils/pointer
pkg
2022-08-13 22:01:02 +03:00
Kubernetes Prow Robot
132f29769d
Merge pull request #111697 from thockin/master
...
Docs: node-port-range should not overlap ephemeral
2022-08-12 13:44:32 -07:00
SataQiu
25a81a7514
kube-proxy: optimize the format of the flag usage string
2022-08-11 19:37:25 +08:00
SataQiu
31f1d84d9a
kubeadm: try to load CA cert from external CertificateAuthority file when CertificateAuthorityData is empty for existing kubeconfig
2022-08-10 21:03:27 +08:00
Kubernetes Prow Robot
759785ea14
Merge pull request #109090 from sarveshr7/multicidr-rangeallocator
...
Enhance NodeIPAM to support multiple ClusterCIDRs
2022-08-07 15:40:18 -07:00
Sarvesh Rangnekar
5b801ba9f9
Introduce MultiCIDRRangeAllocator
...
MultiCIDRRangeAllocator is a new Range Allocator which makes using
multiple ClusterCIDRs possible. It consists of two controllers, one for
reconciling the ClusterCIDR API objects and the other for allocating
Pod CIDRs to the nodes.
The allocation is based on the rules defined in
https://github.com/kubernetes/enhancements/tree/master/keps/sig-network/2593-multiple-cluster-cidrs
2022-08-06 00:10:39 +00:00
Octopusjust
d1dd3691c5
Update cmdutil_test.go
...
Modify error reporting format
2022-08-05 09:47:12 +08:00