Commit graph

9533 commits

Author SHA1 Message Date
Wei Huang
461448a046 Initialize scheduler's podInformer in sharedInformerFactory
Scheduler's specific podInfomer is now initialized inside the sahredInformerFactory.
2021-09-14 13:22:59 -04:00
Mauricio Poppe
8337e4764e New subpath Mounter implements mount.Interface, update kubelet startup
- The kubelet startup code will create a new Mounter instance
  that wraps the existing k8s.io/utils/mount instance
- Provided implementations for all the platforms
2021-08-13 19:11:12 +00:00
Shiming Zhang
188ec68b44 Fix watchForLockfileContention memory leak 2021-05-08 00:09:12 +08:00
jornshen
17aa39a68f no watch endpointslice in userpace mode 2021-04-27 09:33:22 +08:00
Kubernetes Prow Robot
75aca05027
Merge pull request #100450 from mborsz/automated-cherry-pick-of-#97009-#97480-#98257-upstream-release-1.19
[1.19] Automated cherry pick of fixes for "large leases overload event etcd" issue (96836)
2021-04-08 00:23:16 -07:00
Kevin Delgado
b662200c04 Add ability to skip OpenAPI handler installation 2021-03-31 15:55:50 +00:00
Ling Samuel
3820a5d819 api-server add --lease-max-object-count
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
2021-03-23 09:30:37 +01:00
Ling Samuel
537b8d3c06 apiserver add metric etcd_lease_object_counts
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
2021-03-23 09:30:37 +01:00
Ling Samuel
42a3d75bf8 apiserver add --lease-reuse-duration-seconds to config lease reuse duration
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
2021-03-22 12:11:02 +01:00
changshuchao
fc5aaceeb2 Cherry pick of #98254 for 1.19: Fix the kube-scheduler binary's description of the --config parameter is inaccurate
Signed-off-by: changshuchao <chang.shuchao1@zte.com.cn>
2021-02-09 03:44:11 +08:00
hasheddan
79185d7c2b
kubeadm: drop explicit constant override in version test
The k8s release bucket constant is not longer overriden in network tests
because the fetcher is mocked rather than using httptest.NewServer. See
previous implementation in
https://github.com/kubernetes/kubernetes/pull/49119/files#diff-82f2b09991047d4a1884d53dedadd64a473d5c4dc75293514e71773ceedf08e2R128

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2021-02-06 16:51:27 -06:00
hasheddan
f9fd5755e8
kubeadm: get k8s CI version markers from k8s infra bucket
Updates kubeadm version resolution to use kubernetes community infra
bucket to fetch appropriate k8s ci versions. The images are already
being pulled from the kubernetes community infra bucket meaning that a
mismatch can occur when the ci version is fetched from the google infra
bucket and the image is not yet present on k8s infra.

Follow-up to kubernetes/kubernetes#97087

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2021-02-06 16:51:26 -06:00
SataQiu
e2febe9959 kubeadm: change the default image repository for CI images from gcr.io/kubernetes-ci-images to gcr.io/k8s-staging-ci-images
Signed-off-by: SataQiu <1527062125@qq.com>
2021-01-21 22:38:38 +02:00
pacoxu
f69a730e04 use default unkown sock for kubeadm cmd if cri detect is not needed
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-01-08 20:53:44 +08:00
Kubernetes Prow Robot
e338cf2c6d
Merge pull request #95910 from p0lyn0mial/automated-cherry-pick-of-#95725-upstream-release-1.19
Automated cherry pick of #95725: DelegatingAuthorizationOptions: exposes and sets a default
2020-12-04 06:47:59 -08:00
Kubernetes Prow Robot
a111bcd8c9
Merge pull request #96157 from ravisantoshgudimetla/automated-cherry-pick-of-#96051-upstream-release-1.19
Automated cherry pick of #96051
2020-12-04 03:40:00 -08:00
Sandeep Rajan
9cbcdf8131 fix migration logic
modify addon test to cover the entire migration logic
2020-12-03 22:21:50 +00:00
Paco Xu
a945e25913 coredns dep.Severity is newdefault, not newDefault
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2020-12-01 07:24:20 +08:00
Kubernetes Prow Robot
dd8776f644
Merge pull request #96472 from Huang-Wei/automated-cherry-pick-of-#96439-upstream-release-1.19
Automated cherry pick of #96439: Fix a bug that DefaultPreemption plugin is disabled when
2020-11-17 05:34:22 -08:00
Lion-Wei
eccd891f65 fix kube-proxy cleanup 2020-11-12 20:10:53 +02:00
Wei Huang
dea9e917b2
Fix a bug that DefaultPreemption plugin is disabled when using scheduler policy 2020-11-11 11:02:36 -08:00
ravisantoshgudimetla
68a70d3dfe Build files 2020-11-03 20:00:24 +05:30
ravisantoshgudimetla
8af0b18699 Allow priority to be set for kubelet process on Windows 2020-11-03 20:00:24 +05:30
wojtekt
e6398f8bc1 Disable watchcache for events 2020-11-02 17:04:14 +01:00
Lukasz Szaszkiewicz
28af363da8 DelegatingAuthorizationOptions: exposes and sets a default timeout for SubjectAccessReview client
previously no timeout was set. Requests without explicit timeout might potentially hang forever and lead to starvation of the application.
2020-10-27 11:41:35 +01:00
Kubernetes Prow Robot
9e8ad8ce9d
Merge pull request #95797 from Sh4d1/automated-cherry-pick-of-#95786-upstream-release-1.19
Automated cherry pick of #95786: fix: add missing patch flag for kubeadm init phase
2020-10-23 07:17:57 -07:00
Patrik Cyvoct
b25bc7ad0f
fix: add missing patch flag for kubeadm init phase control-plane
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
2020-10-22 18:21:47 +02:00
ialidzhikov
0ca175143c Do not assume storageclass is still in-tree after csi migration
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2020-10-20 13:17:56 +03:00
Kubernetes Prow Robot
e07ba6d2c4
Merge pull request #94890 from neolit123/automated-cherry-pick-of-#94816-origin-release-1.19
Automated cherry pick of #94816: kubeadm: relax the validation of kubeconfig server URLs
2020-09-30 12:34:54 -07:00
Lubomir I. Ivanov
4c58ea4be3 kubeadm: make the CP join handling of kubeconfig similar to "init"
The kubeconfig phase of "kubeadm init" detects external CA mode
and skips the generation of kubeconfig files. The kubeconfig
handling during control-plane join executes
CreateJoinControlPlaneKubeConfigFiles() which requires the presence
of ca.key when preparing the spec of a kubeconfig file and prevents
usage of external CA mode.

Modify CreateJoinControlPlaneKubeConfigFiles() to skip generating
the kubeconfig files if external CA mode is detected.
2020-09-28 18:30:14 +03:00
Lubomir I. Ivanov
5cb00dd526 kubeadm: warn but do not error out on missing CA keys on CP join
- Modify validateCACertAndKey() to print warnings for missing keys
instead of erroring out.
- Update unit tests.

This allows doing a CP node join in a case where the user has:
- copied shared certificates to the new CP node, but not copied
ca.key files, treating the cluster CAs as external
- signed other required certificates in advance
2020-09-28 18:30:14 +03:00
Lubomir I. Ivanov
b09b9f719b kubeadm: relax the validation of kubeconfig server URLs
For external CA users that have prepared the kubeconfig files
for components, they might wish to provide a custom API server URL.
When performing validation on these kubeconfig files, instead of
erroring out on such custom URLs, show a klog Warning.

This allows flexibility around topology setup, where users
wish to make the kubeconfigs point to the ControlPlaneEndpoint instead
of the LocalAPIEndpoint.

Fix validation in ValidateKubeconfigsForExternalCA expecting
all kubeconfig files to use the CPE. The kube-scheduler and
kube-controller-manager now use LAE.
2020-09-18 15:55:36 +03:00
jingyih
3226dafee1 Update default etcd server to 3.4.13 2020-09-05 01:56:41 +08:00
Kubernetes Prow Robot
02b49cae80
Merge pull request #94507 from neolit123/automated-cherry-pick-of-#94506-origin-release-1.19
Automated cherry pick of #94506: kubeadm: remove the CoreDNS check for supported image digests
2020-09-04 08:41:41 -07:00
Kubernetes Prow Robot
c1323c9fe3
Merge pull request #94422 from rosti/automated-cherry-pick-of-#94421-upstream-release-1.19
Automated cherry pick of #94421: kubeadm: Fix `upgrade plan` for air-gapped setups
2020-09-03 19:48:13 -07:00
Lubomir I. Ivanov
922b9189b4 kubeadm: remove the CoreDNS check for supported image digests
The isCoreDNSVersionSupported() check assumes that
there is a running kubelet, that manages the CoreDNS containers.

If the containers are being created it is not possible to fetch
their image digest. To workaround that, a poll can be used in
isCoreDNSVersionSupported() and wait for the CoreDNS Pods
are expected to be running. Depending on timing and CNI
yet to be installed this can cause problems related to
addon idempotency of "kubeadm init", because if the CoreDNS
Pods are waiting for another step they will never get running.

Remove the function isCoreDNSVersionSupported() and assume that
the version is always supported. Rely on the Corefile migration
library to error out if it must.
2020-09-04 05:32:22 +03:00
Lubomir I. Ivanov
228e1ee569 kubeadm: make the scheduler and KCM connect to local endpoint
Pinning the kube-controller-manager and kube-scheduler kubeconfig files
to point to the control-plane-endpoint can be problematic during
immutable upgrades if one of these components ends up contacting an N-1
kube-apiserver:
https://kubernetes.io/docs/setup/release/version-skew-policy/#kube-controller-manager-kube-scheduler-and-cloud-controller-manager
For example, the components can send a request for a non-existing API
version.

Instead of using the CPE for these components, use the LocalAPIEndpoint.
This guarantees that the components would talk to the local
kube-apiserver, which should be the same version, unless the user
explicitly patched manifests.
2020-09-02 20:38:01 +03:00
Rostislav M. Georgiev
065f041cb6 kubeadm: Fix upgrade plan for air-gapped setups
A bug was discovered in the `enforceRequirements` func for `upgrade plan`.
If a command line argument that specifies the target Kubernetes version is
supplied, the returned `ClusterConfiguration` by `enforceRequirements` will
have its `KubernetesVersion` field set to the new version.
If no version was specified, the returned `KubernetesVersion` points to the
currently installed one.

This remained undetected for a couple of reasons
- It's only `upgrade plan` that allows for the version command line argument to
  be optional (in `upgrade plan` it's mandatory)
- Prior to 1.19, the implementation of `upgrade plan` did not make use of the
  `KubernetesVersion` returned by `enforceRequirements`.

`upgrade plan` supports this optional command line argument to enable
air-gapped setups (as not specifying a version on the command line will end up
looking for the latest version over the Interned).

Hence, the only option is to make `enforceRequirements` consistent in the
`upgrade plan` case and always return the currently installed version in the
`KubernetesVersion` field.

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2020-09-02 14:01:00 +03:00
Davanum Srinivas
3421199494
Sign up dims for additional review roles
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-08-08 19:08:38 -04:00
Kubernetes Prow Robot
8f835d5db6
Merge pull request #93607 from liggitt/providerless-kubelet
Fix providerless kubelet startup
2020-08-01 20:22:22 -07:00
Kubernetes Prow Robot
e8f58be5a7
Merge pull request #93448 from hasheddan/vendor-deps
Add dependencycheck tool to address long running no-vendor-cycles test
2020-08-01 16:13:40 -07:00
hasheddan
b09c0d7e18
Add dependencycheck tool to check for dependency cyles in vendored pkgs
dependencycheck verifies that no violating depdendencies exist in pkgs
passed via a JSON file generated from go list.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-08-01 08:10:43 -05:00
Jordan Liggitt
93e2868d4e Fix providerless kubelet startup 2020-07-31 12:30:12 -04:00
Jordan Liggitt
1420b377e4 Add providerless tags 2020-07-30 13:48:40 -04:00
Jordan Liggitt
f33dc28094 generated: hack/update-hack-tools.sh && hack/update-vendor.sh 2020-07-25 16:45:02 -04:00
Kubernetes Prow Robot
54e2070722
Merge pull request #93410 from nikhita/apimachinery-triage-labels
Don't apply triage/needs-information on apimachinery and instrumentation PRs
2020-07-24 19:08:16 -07:00
Nikhita Raghunath
c00dae0607 Revert "Merge pull request #93156 from logicalhan/triage-api-machinery"
This reverts commit 32438cf269, reversing
changes made to bb6a6aa391.
2020-07-24 13:01:02 +05:30
Jordan Liggitt
22c9236741 Allow integration test servers extra time to start 2020-07-23 17:46:59 -04:00
Kubernetes Prow Robot
32438cf269
Merge pull request #93156 from logicalhan/triage-api-machinery
automatically assign triage labels to api-machinery tagged PRs
2020-07-21 19:52:34 -07:00
Kubernetes Prow Robot
05f6812c2d
Merge pull request #90822 from deads2k/csr-separate-signer-flags-02
allow setting different certificates for kube-controller-managed CSR signers
2020-07-18 03:10:50 -07:00