Commit Graph

44631 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
ef44d39be0 Merge pull request #99464 from Nordix/master-fix
Number of sockets is assumed to be same as NUMA nodes in kubelet
2021-03-03 14:41:21 -08:00
Kubernetes Prow Robot
4da27a93b3 Merge pull request #99444 from mengjiao-liu/update-signerName-field-description
Clarify external CSR signerName field description
2021-03-03 14:41:13 -08:00
Kubernetes Prow Robot
aeff7ae701 Merge pull request #99414 from Jiawei0227/type
Update inline volume spec comments
2021-03-03 14:41:05 -08:00
Kubernetes Prow Robot
7b0ad65d4d Merge pull request #99288 from supriya-premkumar/ineffassign
Adds ineffassign to GO linter script.
2021-03-03 14:40:46 -08:00
Kubernetes Prow Robot
53492f79df Merge pull request #98756 from pacoxu/ut/faster
networking nodeipam UT: set node poll interval to 1s in UT
2021-03-03 14:40:31 -08:00
Kubernetes Prow Robot
59f8ba5ffa Merge pull request #98595 from SergeyKanzhelev/nodelifecycleSchedulerUnitTestsSpeedUp
sped up scheduler tests by using fake clock
2021-03-03 14:40:21 -08:00
Kubernetes Prow Robot
6059a67e49 Merge pull request #98441 from alculquicondor/array-job-api
Add Indexed completionMode to Job API
2021-03-03 14:40:14 -08:00
Kubernetes Prow Robot
90ac9cfc58 Merge pull request #97881 from ialidzhikov/nit/unnecessary-type-conversion
Nit: Remove unnecessary type conversion
2021-03-03 14:39:49 -08:00
ravisantoshgudimetla
e64576af0a Only system-node-critical pods should be OOM Killed last 2021-03-03 16:34:27 -05:00
David Eads
a375312fdc stop re-use of alpha storage as beta for flowcontrol 2021-03-03 16:10:45 -05:00
Jing Xu
d669cb1b17 Fix issue in checking domain socket for plugin watcher
Due to recent os.Stat() issue for Windows 20H2, added the logic to use
    os.Lstat() if os.Stat() fails for Windows

Change-Id: Ic9fc07ecc6e9c2984e854ac77121ff61c8e0d041
2021-03-03 12:37:14 -08:00
Sergey Kanzhelev
d24ed4ace1 sped up scheduler tests by using fake clock 2021-03-03 19:12:53 +00:00
Jan Safranek
334c7dfe74 Promote Cinder topology labels to GA 2021-03-03 20:05:12 +01:00
Tim Hockin
84856c7cae Remove defaults for ipFamilyPolicy and ipFamilies
These same values are set in the REST stack and it's easier to maintain
that code all in one place.

defaults.go is best for static values.
2021-03-03 09:42:02 -08:00
Tim Hockin
1e39f6ccf9 Two small bugs in dual-stack init
Imporved testing turned these up:

1) Headless+Selectorless, on a single-stack cluster, policy=PreferDual

Prior to this commit, the result was a single IPFamiliy (because we
checked that the 2nd allocator was present).  This changes that case to
populate both families (we don't care if the allocator exists), which is
the same as RequireDual.

2) ClusterIP, user specifies 2 families but no IPs

Prior to this commit, the policy was inferred to be SingleStack.  This
changes that case to correctly default to RequireDual when 2 families
are present but no IPs.
2021-03-03 09:42:02 -08:00
Supriya Premkumar
e52e5e486c Adds ineffassign to GO linter script.
Changes:
 - Enables ineffassign check in the verify scripts.
 - Fixes lint errs.
2021-03-03 08:28:10 -08:00
David Eads
cd08de9eb0 stop using AllowInsecureBackendProxy featuregate since it is always true 2021-03-03 10:52:14 -05:00
Wei Huang
6fdb1a8439 sched: add a benchmark test for MoveAllToActiveOrBackoffQueue 2021-03-03 07:20:08 -08:00
Wei Huang
f322019d7a Store a cluster event to plugin map in SchedulerQueue 2021-03-03 07:20:07 -08:00
Aldo Culquicondor
a1a5868a5a Add Job.spec.completionMode and Job.status.completedIndexes
And IndexedJob feature gate, disabled by default.
Update JobDescriber
2021-03-03 15:10:18 +00:00
David Eads
3cf9bc547f Use a versioner to convert an internal type into an external type for
beta serving
2021-03-03 07:05:43 -05:00
Shiming Zhang
b152001f45 Fix HTTPProbe initialize header 2021-03-03 19:42:31 +08:00
Kubernetes Prow Robot
a6a66c3594 Merge pull request #98939 from yangjunmyfm192085/run-test16
Structured Logging migration: modify dockershim and network part logs of kubelet.
2021-03-03 03:31:33 -08:00
Kubernetes Prow Robot
ad80c76677 Merge pull request #98924 from cynepco3hahue/set_container_memory_during_creation
memory manager: specify the container cpuset.memory during the creation
2021-03-03 03:31:20 -08:00
Kubernetes Prow Robot
7c9841d586 Merge pull request #98985 from timyinshi/proxy
delete the extra word
2021-03-03 01:53:32 -08:00
Patrick Ohly
512401a8a2 scheduler: tests for generic ephemeral volumes
This covers some failure scenarios and feature gate enablement.
2021-03-03 10:13:05 +01:00
Patrick Ohly
d2cc70ee2c scheduler: fail when a pod uses disabled generic ephemeral volumes
Without this error, kube-scheduler was simply ignoring the special
volume source and scheduled the pod. This was unlikely to work in
practice because the volume might have needed binding or the feature
is also disabled on kubelet which then doesn't know what to do with
the volume.
2021-03-03 10:13:05 +01:00
Patrick Ohly
68370c8aa6 kubelet: more tests for generic ephemeral volumes
This simulates various error scenarios (PVC not created for pod,
feature disabled) and switching between feature disabled and enabled.
2021-03-03 10:13:05 +01:00
Patrick Ohly
edb9a8584c kubelet: better error when generic ephemeral volume is disabled
Silently ignoring the unsupported volume type leads to:

  Warning  FailedMount       8s    kubelet            Unable to attach or mount volumes: unmounted volumes=[my-csi-volume default-token-bsnbz], unattached volumes=[my-csi-volume default-token-bsnbz]: failed to get Plugin from volumeSpec for volume "my-csi-volume" err=no volume plugin matched

The new message is easier to understand:
  Warning  FailedMount       6s (x5 over 49s)  kubelet            Unable to attach or mount volumes: unmounted volumes=[my-csi-volume], unattached volumes=[my-csi-volume default-token-rwlpp]: volume my-csi-volume is a generic ephemeral volume, but that feature is disabled in kubelet
2021-03-03 10:13:05 +01:00
Patrick Ohly
d64165c803 generic ephemeral volumes: fix and test apiserver feature gate
The implementation should have preserved an existing ephemeral volume
source during an update even when the feature gate is currently
disabled, but due to a cut-and-paste error it was checking for CSI
volumes instead.

The new test detected that. It's based on
https://github.com/kubernetes/kubernetes/pull/97058/files#diff-7826f7adbc1996a05ab52e3f5f02429e94b68ce6bce0dc534d1be636154fded3
2021-03-03 10:13:05 +01:00
pacoxu
cef6e81fb3 set node poll interval to 10ms in UT
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-03-03 16:39:57 +08:00
Mikkel Oscar Lyderik Larsen
fef092b417 hpa: Don't scale down if at least one metric was invalid
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
2021-03-03 07:53:01 +01:00
Mengxue Zhang
7d1ab94b9a remove useless pluginConfigs 2021-03-03 05:14:36 +00:00
Elana Hashman
3b6156e08c Clean up OWNERS for pkg/probe 2021-03-02 16:38:32 -08:00
Jakub Guzik
85d69cde82 Migrate pkg/kubelet/cm/cpumanager/state to structured logging
Signed-off-by: Jakub Guzik <jakubmguzik@gmail.com>
2021-03-03 01:18:37 +01:00
Kubernetes Prow Robot
3022b39817 Merge pull request #99610 from derekwaynecarr/enable-downward-api-hugepages
Promote DownwardAPIHugePages to beta
2021-03-02 15:49:40 -08:00
Kubernetes Prow Robot
62bb595cbe Merge pull request #98627 from jialaijun/migrate_to_structured_logs_5
Migrate pkg/kubelet/metrics logs to structured logging.
2021-03-02 15:49:31 -08:00
Kubernetes Prow Robot
da2f6385e9 Merge pull request #98589 from chenyw1990/structuredLogsOfRemote
pkg/kubelet/cri/remote: migrate to structured logs
2021-03-02 15:49:19 -08:00
Kubernetes Prow Robot
e811f5fdf9 Merge pull request #99463 from jingxu97/feb/stat
Use Lstat in plugin watcher to avoid Windows problem
2021-03-02 14:47:19 -08:00
David Eads
ac731a7af7 promote AllowInsecureBackendProxy to stable 2021-03-02 16:23:51 -05:00
Kubernetes Prow Robot
ee90db514c Merge pull request #99345 from robscott/endpointslice-wait-for-cache
Updating EndpointSlice controller to wait for cache to be updated
2021-03-02 13:23:20 -08:00
Kubernetes Prow Robot
ec1b6ce53a Merge pull request #99236 from pacoxu/enable-cadvisor-json-endpoints/cleanup
Deprecate cAdvisor json metrics collected by Kubelet
2021-03-02 12:16:07 -08:00
Kubernetes Prow Robot
d1a2af554a Merge pull request #99115 from pohly/ephemeral-volume-metrics
generic ephemeral volume: add metrics
2021-03-02 12:15:59 -08:00
Kubernetes Prow Robot
4a56d8c19a Merge pull request #99103 from liggitt/prefer-v1
Prefer v1 storage versions
2021-03-02 12:15:48 -08:00
Kubernetes Prow Robot
a89d783b27 Merge pull request #99553 from alaypatel07/fix-flaky-unit-test
cronjob: fix flaky unit test TestController2_updateCronJob
2021-03-02 11:11:31 -08:00
Mike Dame
d09a841246 Surface more information about plugin scores in scheduler 2021-03-02 14:01:55 -05:00
Jefftree
fe1d868284 Promote SSA to GA 2021-03-02 10:39:33 -08:00
Rob Scott
e1542606c2 Updating EndpointSlice controller to wait for cache to be updated
This updates the EndpointSlice controller to make use of the
EndpointSlice tracker to identify when expected changes are not present
in the cache yet. If this is detected, the controller will wait to sync
until all expected updates have been received. This should help avoid
race conditions that would result in duplicate EndpointSlices or failed
attempts to update stale EndpointSlices. To simplify this logic, this
also moves the EndpointSlice tracker from relying on resource versions
to generations.
2021-03-02 09:43:46 -08:00
Sascha Grunert
0d22571519 Remove check for apparmor_parser in AppArmor host validation
The `apparmor_parser` binary is not really required for a system to run
AppArmor from a Kubernetes perspective. How to apply the profile is more
in the responsibility of lower level runtimes like CRI-O and containerd,
which may do the binary check on their own.

This synchronizes the current libcontainer implementation with the
vendored Kubernetes source code and allows distributions to use
AppArmor, even when they do not have the parser available in
`/sbin/apparmor_parser`.

Signed-off-by: Sascha Grunert <mail@saschagrunert.de>
2021-03-02 18:40:14 +01:00
Jordan Liggitt
4515889574 Prefer v1 storage versions 2021-03-02 12:06:13 -05:00