Commit Graph

7182 Commits (0c4031f3a6fb34e49b84a115c5e7f140444488d5)

Author SHA1 Message Date
Xing Yang 000ab86788 Move CSIDriver Lister to the controller 2019-04-05 12:20:11 -07:00
Kubernetes Prow Robot a727bddc5e
Merge pull request #75523 from freehan/bug-fix
reconcile pod ready condition when message is not expected
2019-04-04 23:53:19 -07:00
Kubernetes Prow Robot 28295b0e78
Merge pull request #76098 from smarterclayton/move_direct_encoder
Move DirectEncoder to runtime, rename, add .WithoutConversion() on CodecFactory
2019-04-04 21:07:55 -07:00
Kubernetes Prow Robot dc1ff116dc
Merge pull request #74220 from tedyu/master
Aggregate errors for kube runtime GC
2019-04-04 17:47:19 -07:00
Clayton Coleman 7f9dfe58f4
Use CodecFactory.WithoutConversion() everywhere
Clarifies that requesting no conversion is part of the codec factory, and
future refactors will make the codec factory less opionated about conversion.
2019-04-03 22:19:13 -04:00
Dr. Stefan Schimanski 37046e3028 Handle feature gate errors 2019-04-03 16:52:05 +02:00
Giuseppe Scrivano a561196bfe
logs: consume all file until EOF on exited container
If the container is not found, do not stop reading the log file
immediately but wait until we reach again EOF.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:21 +01:00
Giuseppe Scrivano 8f68b281e4
kubelet: force checking the log file every second
it seems fsnotify can miss some read events, blocking the kubelet to
receive more data from the log file.

If we end up waiting for events with fsnotify, force a read from the
log file every second so that are sure to not miss new data for longer
than that.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:20 +01:00
Giuseppe Scrivano 341c2c0d1f
kubelet: handle recreated log files
if the runtime is configured to rotate the log file, we might end up
watching the old fd where there are no more writes.

When a fsnotify event other than Write is received, reopen the log
file and recreate the watcher.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:20 +01:00
Giuseppe Scrivano 2c30eee92f
kubelet: read immediately after creating the watcher
if some events happen between the Read and while we set the watcher,
we might miss them.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:11 +01:00
Kubernetes Prow Robot dabeb20a1a
Merge pull request #75587 from tiffanyfay/cred-provider
Refactor AWS credential provider
2019-03-29 14:48:47 -07:00
Kubernetes Prow Robot 4b3eb60081
Merge pull request #75531 from dims/add-new-staging-repository-for-cri-api
New staging repository for cri-api
2019-03-26 18:10:49 -07:00
tiffany jernigan 847cb24aa1 Credential provider Provide takes image (general) 2019-03-27 01:00:26 +00:00
Davanum Srinivas 33081c1f07
New staging repository for cri-api
Change-Id: I2160b0b0ec4b9870a2d4452b428e395bbe12afbb
2019-03-26 18:21:04 -04:00
Kubernetes Prow Robot 531dbd409f
Merge pull request #75445 from shinytang6/enhance/fmt
Replace all time.Now().Sub with time.Since
2019-03-26 13:55:17 -07:00
Kubernetes Prow Robot 428a8e04d4
Merge pull request #75458 from jingxu97/March/raceofActualDesiredState
Fix race condition between actual and desired state in kublet volume manager
2019-03-25 13:24:51 -07:00
Clayton Coleman b28e82ad4a
Avoid using `%#v` for errors when using only a portion of the object
`%#v` may have significant performance costs in frequently invoked code.
2019-03-21 22:52:09 -04:00
shinytang6 5c9f4d9dc6 replace time.Now().Sub with time.Since 2019-03-21 18:02:55 +08:00
Minhan Xia 47bc948fe3 reconcile pod ready condition when message is not expected 2019-03-20 14:05:40 -07:00
Kubernetes Prow Robot 26fea2361a
Merge pull request #75166 from qingsenLi/k8s190308-fix-heatbeat
spelling error 'heatbeat'
2019-03-20 13:30:59 -07:00
Kubernetes Prow Robot 795c96aa9d
Merge pull request #71822 from houjun41544/20181207-event
Remove unused kubelet event reasons
2019-03-20 11:07:47 -07:00
Kubernetes Prow Robot 155688b2f3
Merge pull request #75309 from cwdsuzhou/remove_unused_variable
Remove the unused variabe: syncDuration in volumemanager
2019-03-20 07:42:08 -07:00
Kubernetes Prow Robot 16b5f7d3c5
Merge pull request #67487 from tianshapjq/validate-system-kube-reserved
validate systemReservedCgroup and kubeReservedCgroup
2019-03-19 21:26:22 -07:00
Kubernetes Prow Robot 046dcbd1ed
Merge pull request #73917 from droslean/cleanup
replace loops with go idiomatic.
2019-03-19 19:01:04 -07:00
Jing Xu 7cb5df6728 Fix race condition between actual and desired state in kublet volume
manager

This PR fixes the issue #75345. This fix modified the checking volume in
actual state when validating whether volume can be removed from desired state or not. Only if volume status is already mounted in actual state, it can be removed from desired state.
For the case of mounting fails always, it can still work because the
check also validate whether pod still exist in pod manager. In case of
mount fails, pod should be able to removed from pod manager so that
volume can also be removed from desired state.
2019-03-18 17:08:48 -07:00
Kubernetes Prow Robot 1a24040447
Merge pull request #74781 from liggitt/http2-watch
kubelet watch-manager test, restore watch-based manager default
2019-03-16 12:52:56 -07:00
Kubernetes Prow Robot 3512757882
Merge pull request #75416 from tallclair/local-redirects
Don't follow non-local redirects from HTTP probes
2019-03-16 09:14:57 -07:00
Kubernetes Prow Robot 0f6196878d
Merge pull request #75367 from feiskyer/fix-dockershim-panic
Fix panic when removing docker images
2019-03-16 01:08:56 -07:00
Tim Allclair e6ea4f0538 Don't follow non-local redirects for http probes 2019-03-15 11:04:30 -07:00
caiweidong 92aee22646 Remove the unused variabe: syncDuration in volumemanager 2019-03-15 10:04:41 +08:00
Kubernetes Prow Robot b3ec6c17f1
Merge pull request #75144 from Huang-Wei/followup-74222
kubelet: updated logic of verifying a static critical pod
2019-03-14 14:41:00 -07:00
Pengfei Ni a304297c99 Fix panic when removing docker images 2019-03-14 18:53:02 +08:00
Jordan Liggitt f2a0c0342c Revert "Revert kubelet to default to ttl cache secret/configmap behavior"
This reverts commit cd1c9f9018.
2019-03-13 15:12:26 -07:00
Wei Huang d67e7fd47f
kubelet: updated logic of verifying a static critical pod
- check if a pod is static by its static pod info
- meanwhile, check if a pod is critical by its corresponding mirror pod info
2019-03-12 23:40:20 -07:00
Kubernetes Prow Robot 243e740885
Merge pull request #74809 from oxddr/secrets-and-maps
Fix secret/configmap management for terminated pods
2019-03-11 16:42:36 -07:00
Lantao Liu 0ac651bfc3 Include pod logs in the pod ephemeral storage.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-03-08 16:42:14 -08:00
Lantao Liu f14c6c95d6 New pod log directory /var/log/pods/NAMESPACE_NAME_UID.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-03-08 16:42:14 -08:00
qingsenLi 147666f10f spelling error 'heatbeat' 2019-03-09 00:22:06 +08:00
Hemant Kumar 89d1de9eb9 Rename ExandFS to NodeExpand
Handle resize error in online resizing
Use NodeExpandable plugin to mark volumes that require node expansion
2019-03-08 09:21:44 -05:00
Kubernetes Prow Robot 535064773a
Merge pull request #73946 from dashpole/prometheus_core_metrics
Add kubelet resource metrics v1alpha1 endpoint
2019-03-07 22:43:28 -08:00
Kubernetes Prow Robot 183e6cc190
Merge pull request #74433 from tallclair/runtimeclass-internal
Migrate RuntimeClass from a CRD to an internal API
2019-03-07 21:19:30 -08:00
Kubernetes Prow Robot ad27abde62
Merge pull request #74835 from davidz627/feature/adcFallback
Add logic for initializing CSINode on Node startup for CSI Migration [Replaces #70909]
2019-03-07 18:39:25 -08:00
David Zhu 41b3579345 Address review comments 2019-03-07 17:17:09 -08:00
Kubernetes Prow Robot a6d8dbcaef
Merge pull request #74913 from yastij/explicit-restart-policy
explicit the restartPolicy on the dockershim
2019-03-07 16:12:39 -08:00
Kubernetes Prow Robot fbc5150c7d
Merge pull request #74788 from feiskyer/windows-network-stats
Add network stats for Windows nodes and containers
2019-03-07 16:12:24 -08:00
David Ashpole 6051664c0f add kubelet prometheus resource metrics endpoint 2019-03-07 15:39:37 -08:00
David Zhu 34d9ee5b9b Add CSINode initialization for CSIMigration on node startup before pod ready 2019-03-07 14:47:38 -08:00
Tim Allclair 428e9fa329 generated files 2019-03-07 11:57:12 -08:00
Tim Allclair 222988bdda Migrate to internal node.k8s.io client 2019-03-07 11:57:12 -08:00
Wei Huang c5a96b63f4
Revert "kubelet: return mirror pod in GetActivePods()"
This reverts commit c0c93f4a52.
2019-03-07 11:22:27 -08:00