Commit Graph

2741 Commits (k3s-v1.15.3)

Author SHA1 Message Date
Darren Shepherd 8cef2e14c4 kubelet: new feature gate: SupportNoneCgroupDriver
The "none" driver is expected to be used in "rootless" mode until OCI/CRI runtime
get support for cgroup2 (unified) mode with nsdelegate.

Even after cgroup2 gets supported in the ecosystem, the "none" driver will remain
because nested containers might not always get support for cgroup2 (via systemd).

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

# Conflicts:
#	cmd/kubelet/app/server.go
#	pkg/features/kube_features.go
2019-08-27 09:33:37 -07:00
Kubernetes Prow Robot 897d8c9768
Merge pull request #80834 from neolit123/1.15-update-version
kubeadm: update the version constants for 1.15
2019-08-08 04:57:16 -07:00
Lubomir I. Ivanov fc9e04f6d2 kubeadm: update the supported version for 1.15 2019-08-01 05:56:29 +03:00
Lubomir I. Ivanov c36a584d7a kubeadm: apply a number of _test fixes
- common_test.go: use constants.CurrentKubernetesVersion
- diff_test.go: write temporary files instead of using testdata.
this allows us to not have to bump kubernetesVersions in the
testdata files (now removed)
- policy_test.go: apply fixes to tests that were previously passing,
but a bump in constants.go breaks them. these tests now work
for any version.
2019-08-01 05:56:29 +03:00
fabriziopandini 8e95f9fafd feedback 1 2019-07-30 01:52:55 +03:00
fabriziopandini a1ee8d63be fix-file-discovery 2019-07-30 01:52:55 +03:00
fabriziopandini d91d4c53e6 autogenerated 2019-07-30 01:52:55 +03:00
Lubomir I. Ivanov bc74ac3eaa kubeadm: run MemberAdd/Remove for etcd clients with exp-backoff retry
When adding a new etcd member the etcd cluster can enter a state
of vote, where any new members added at the exact same time will
fail with an error right away.

Implement exponential backoff retry around the MemberAdd call.

This solves a kubeadm problem when concurrently joining
control-plane nodes with stacked etcd members.

From experiment, a few retries with milliseconds apart are
sufficient to achieve the concurrent join of a 3xCP cluster.

Apply the same backoff to MemberRemove in case the concurrent
removal of members fails for similar reasons.
2019-07-04 18:14:20 +03:00
Kubernetes Prow Robot 8d506eacb6
Merge pull request #79605 from SataQiu/automated-cherry-pick-of-#79498-up-release-1.15
Automated cherry pick of #79498: kubeadm: fix bug for --cri-socket flag processing logic
2019-07-04 06:00:30 -07:00
Kubernetes Prow Robot 0b72ca4f24
Merge pull request #79369 from SataQiu/fix-kubeadm-1.15-20190625
kubeadm: improve kubeadm command output
2019-07-03 11:51:42 -07:00
SataQiu 8e34534bbf kubeadm: fix bug for --cri-socket flag processing logic 2019-07-01 23:44:55 +08:00
Benjamin Elder 0471848c2b fix KubeletConfiguration apiVersion 2019-06-26 10:44:15 -07:00
SataQiu 8f205dbb59 kubeadm: improve kubeadm command output 2019-06-25 22:13:15 +08:00
Brad Beam 915ae255e6 fix: Use correct function to remove etcd member
Signed-off-by: Brad Beam <brad.beam@talos-systems.com>
2019-06-24 17:18:28 +08:00
Kubernetes Prow Robot 4f29960cb2
Merge pull request #78915 from ereslibre/retry-configmap-get-on-unauthorized
kubeadm: Add ability to retry ConfigMap get if certain errors happen
2019-06-12 13:00:19 -07:00
Rafael Fernández López 26c9965a97
kubeadm: Add ability to retry ConfigMap get if certain errors happen
During the control plane joins, sometimes the control plane returns an
expected error when trying to download the `kubeadm-config` ConfigMap.
This is a workaround for this issue until the root cause is completely
identified and fixed.

Ideally, this commit should be reverted in the near future.
2019-06-12 17:49:27 +02:00
Sandeep Rajan 77466d4a65 [kubeadm] Add the upstream option in CoreDNS configmap 2019-06-11 21:19:43 -04:00
fabriziopandini dbb82ba99a fix-kubeadm-upgrade-node 2019-06-04 14:57:30 +02:00
Kubernetes Prow Robot 16aeec2485
Merge pull request #78545 from neolit123/kubeadm-revert-coredns-1.3.1
kubeadm: revert CoreDNS to 1.3.1
2019-06-03 14:51:29 -07:00
Kubernetes Prow Robot 71fe27eff5
Merge pull request #78586 from rosti/fix-deprecation-msg
kubeadm: Fix deprecation message for a flag
2019-06-02 05:12:12 -07:00
Kubernetes Prow Robot 79dc1d4c49
Merge pull request #78585 from neolit123/kubeadm-fix-upgrade-node
kubeadm: fix conditional control-plane upgrade
2019-06-02 03:02:14 -07:00
Kubernetes Prow Robot cc30c0d9a4
Merge pull request #78399 from rikatz/remove-deprecated-conntrack-max
Remove deprecated flag --conntrack-max from kube-proxy
2019-06-01 17:26:14 -07:00
Kubernetes Prow Robot 9c807d483e
Merge pull request #78611 from odinuge/kubeadm-err-check
Fix error handling for loading initCfg in kubeadm
2019-06-01 15:38:14 -07:00
Ricardo Pchevuzinske Katz 82c42bb6ee Remove deprecated flag --conntrack-max from kube-proxy 2019-06-01 18:10:28 -03:00
Kubernetes Prow Robot c81ae93159
Merge pull request #78542 from neolit123/kubeadm-mixed-cert-key
kubeadm: disallow the mixture of --config and --certificate-key
2019-06-01 09:51:07 -07:00
Kubernetes Prow Robot 5d1409a4bf
Merge pull request #78189 from ksubrmnn/initsystem
Use Service Control Manager as the Windows Initsystem
2019-05-31 22:02:34 -07:00
Odin Ugedal 2fc9b3a670
Fix error handling for loading initCfg in kubeadm
This fixes possible problems when kubeadm upgrade can't load the
InitConfig properly. Some new code introduced in
https://github.com/kubernetes/kubernetes/pull/75499 is placed between
the loading of the config and the error handling, hiding possible
errors.

This error cannot be ignored (as is the case now), since the cfg ptr.
returned from the configutil function will be nil in the case of an
error.

Signed-off-by: Odin Ugedal <odin@ugedal.com>
2019-06-01 02:08:46 +02:00
Rostislav M. Georgiev a402610d37 kubeadm: Fix deprecation message for a flag
Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2019-05-31 17:07:21 +03:00
Lubomir I. Ivanov aede153310 kubeadm: fix conditional control-plane upgrade
When a node is not a control-plane properly skip "control-plane"
upgrade phase.
2019-05-31 16:25:46 +03:00
Lubomir I. Ivanov a49bc480b9 kubeadm: revert CoreDNS to 1.3.1 2019-05-30 23:31:54 +03:00
Lubomir I. Ivanov d6f1dff1ce kubeadm: disallow the mixture of --config and --certificate-key
Similar to --token, do not allow the mixture of --config and
--certificate-key.

If the user has fed a config, it is expected that the certificate
key should also be provided in the config and not from
the command line.
2019-05-30 22:35:41 +03:00
Kubernetes Prow Robot 44a3bf4755
Merge pull request #78452 from fabriziopandini/rename-ha-flags
kubeadm: rename-ha-flags
2019-05-30 02:25:13 -07:00
Kubernetes Prow Robot de81752082
Merge pull request #78408 from fabriziopandini/upgrade-node-ha
kubeadm: upgrade node for HA
2019-05-30 00:32:58 -07:00
Kubernetes Prow Robot 4eab931f15
Merge pull request #78403 from rosti/v1beta2-doc-updates
kubeadm: Update v1beta2 doc.go
2019-05-30 00:32:20 -07:00
ksubrmnn 4d7ee1cd5a Use system calls to manage Windows services 2019-05-29 17:33:47 -07:00
fabriziopandini 67d76c46c7 autogenerated 2019-05-29 22:06:52 +02:00
fabriziopandini c2faa3bfd1 kubeadm upgrade node 2019-05-29 22:06:42 +02:00
Kubernetes Prow Robot 6a0db7b189
Merge pull request #77739 from rosti/initclustersplit-v1beta2
kubeadm: Remove ClusterConfiguration from InitConfiguration in v1beta2
2019-05-29 07:58:28 -07:00
Kubernetes Prow Robot ddb0b017f8
Merge pull request #78081 from yagonobre/reset-preflight
Graduate kubeadm reset phases
2019-05-29 03:10:24 -07:00
Rostislav M. Georgiev 5671ea9cf1 kubeadm: Remove ClusterConfiguration from InitConfiguration in v1beta2
Ever since v1alpha3, InitConfiguration is containing ClusterConfiguration
embedded in it. This was done to mimic the internal InitConfiguration, which in
turn is used throughout the kubeadm code base as if it is the old
MasterConfiguration of v1alpha2.

This, however, is confusing to users who vendor in kubeadm as the embedded
ClusterConfiguration inside InitConfiguration is not marshalled to YAML.
For this to happen, special care must be taken for the ClusterConfiguration
field to marshalled separately.

Thus, to make things smooth for users and to reduce third party exposure to
technical debt, this change removes ClusterConfiguration embedding from
InitConfiguration.

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2019-05-29 12:13:37 +03:00
Kubernetes Prow Robot 6118b8aa73
Merge pull request #77848 from yagonobre/certificate-key-command
Add kubeadm alpha certs certificate-key command
2019-05-28 22:20:48 -07:00
Yago Nobre 960083130b
kubeadm: graduate reset phases 2019-05-28 23:32:04 -03:00
fabriziopandini f3b5cb2145 rename-ha-flags 2019-05-28 22:16:03 +02:00
Kubernetes Prow Robot 2f7eaa1ee3
Merge pull request #78053 from ksubrmnn/crisocket
Implement CRI detection for Windows
2019-05-28 07:17:58 -07:00
Rostislav M. Georgiev de1bd55e96 kubeadm: Update v1beta2 doc.go
Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2019-05-27 18:02:17 +03:00
Yago Nobre 0a005e3dac
Add kubeadm certificate-key command 2019-05-27 11:29:31 -03:00
yameiwang 7e1badd7fd fix typo worklow->workflow 2019-05-25 07:05:37 +08:00
ksubrmnn 310bafe658 Implement CRI detection for Windows 2019-05-23 09:54:53 -07:00
Marc Carré 7e2b4aa562
kubeadm errors now ignorable via v1beta2 config files (generated diff)
This commit contains only changes generated by the build process.
Nothing here was manually changed.

Changes made to:
```
cmd/kubeadm/app/apis/kubeadm/validation/BUILD
cmd/kubeadm/app/cmd/BUILD
```
were generated by running:
````
./hack/update-bazel.sh
```
2019-05-23 16:22:18 +09:00
Marc Carré e706d27262
kubeadm errors now ignorable via v1beta2 config files
Specifically, IgnorePreflightErrors in {Init,Join}Configuration's NodeRegistrationOptions can be used to achieve this.
See also: https://docs.google.com/document/d/1XnP67oO1i9VcDIpw42IzptnJsc5OQM-HTf8cVcjCR2w/edit
2019-05-23 16:22:17 +09:00