kubernetes/pkg/kubelet
Kubernetes Submit Queue 1070a51830 Merge pull request #31388 from yifan-gu/fix_kubenet_getRunningPods
Automatic merge from submit-queue

kubenet: SyncHostports for both running and ready to run pods.

This fixes the race that happens in rktnetes when pod B invokes
'kubenet.SetUpPod()' before another pod A becomes actually running.

The second 'kubenet.SetUpPod()' call will not pick up the pod A
and thus overwrite the host port iptable rules that breaks pod A.

This PR fixes the case by listing all 'active pods' (all non-exited
pods) instead of only running pods.

Fix https://github.com/kubernetes/kubernetes/issues/27975 

Originally discussed in https://github.com/kubernetes/kubernetes/pull/27914#issuecomment-228140108

cc @euank @freehan @dcbw
2016-09-20 04:24:41 -07:00
..
api CRI: add annotations to PodSandbox 2016-09-16 11:09:24 -07:00
cadvisor Filter internal Kubernetes labels from Prometheus metrics 2016-08-22 19:44:27 -04:00
client Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
cm Revert "Revert "[kubelet] Fix oom-score-adj policy in kubelet"" 2016-09-16 16:32:58 -07:00
config Merge pull request #31761 from ZTE-PaaS/zhangke-patch-032 2016-09-05 23:58:27 -07:00
container CRI: Add missing sandbox in runningPod. 2016-09-19 11:52:00 -07:00
custommetrics Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
dockershim dockershim: support filter containers by sandbox ID 2016-09-16 11:31:15 -07:00
dockertools CRI: Add missing sandbox in runningPod. 2016-09-19 11:52:00 -07:00
envvars Use Go canonical import paths 2016-07-16 13:48:21 -04:00
events Log an event when container runtime exceeds grace-period during eviction 2016-09-07 13:28:08 -04:00
eviction Clean up IPTables caps i.e.: sed -i "s/Iptables/IPTables/g" 2016-08-29 10:34:42 +10:00
images Fix various typos in pkg/kubelet 2016-08-30 22:57:47 +02:00
kuberuntime CRI: Add missing sandbox in runningPod. 2016-09-19 11:52:00 -07:00
leaky Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
lifecycle TODO: move predicate check into a pod admitter 2016-09-09 09:58:42 +08:00
metrics Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
network kubenet: SyncHostports for both running and ready to run pods. 2016-09-16 17:29:44 -07:00
pleg Merge pull request #31395 from yujuhong/getpods 2016-09-08 05:41:16 -07:00
pod Avoid StatusManager.syncPod when there is no corresponding mirror pod for static pod. 2016-09-07 17:03:15 -07:00
prober Always return exec command output 2016-08-17 16:21:19 -04:00
qos Revert "Revert "[kubelet] Fix oom-score-adj policy in kubelet"" 2016-09-16 16:32:58 -07:00
remote Kubelet: rename CreatePodSandbox to RunPodSandbox in CRI 2016-09-07 21:38:56 +08:00
rkt CRI: Add missing sandbox in runningPod. 2016-09-19 11:52:00 -07:00
rktshim Merge pull request #32410 from euank/revert-rktshim-image-service 2016-09-12 22:26:34 -07:00
server Merge pull request #32348 from asalkeld/metrics-nil-spammy 2016-09-16 11:27:15 -07:00
status Avoid StatusManager.syncPod when there is no corresponding mirror pod for static pod. 2016-09-07 17:03:15 -07:00
sysctl Remove net.ipv4.tcp_max_syn_backlog from sysctl whitelist 2016-09-05 13:04:19 +02:00
types Use Go canonical import paths 2016-07-16 13:48:21 -04:00
util Move CSR helper for nodes out of kubelet 2016-09-08 07:27:38 +01:00
volumemanager Merge pull request #32242 from jingxu97/bug-wrongvolume-9-2 2016-09-12 15:29:38 -07:00
active_deadline_test.go Refactor util clock into it's own pkg 2016-07-28 02:29:04 -04:00
active_deadline.go Refactor util clock into it's own pkg 2016-07-28 02:29:04 -04:00
container_bridge_test.go Add tests for container_bridge.go (really just ensureIPTablesMasqRule) 2016-07-29 11:57:17 -04:00
container_bridge.go Revert "Use netlink.SetPromiscOn instead of iproute2 command" 2016-08-22 10:28:11 +02:00
disk_manager_test.go Revert "Declare out of disk when there is no free inodes" 2016-07-06 08:19:09 -07:00
disk_manager.go Revert "Declare out of disk when there is no free inodes" 2016-07-06 08:19:09 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
flannel_helper.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubelet_cadvisor_test.go Print/log pointers of structs with %#v instead of %+v 2016-08-01 22:27:56 +02:00
kubelet_cadvisor.go Eviction manager needs to start as runtime dependent module 2016-07-22 10:19:40 -04:00
kubelet_getters_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
kubelet_getters.go Reconcile value of controller-managed attach-detach annotation on existing nodes in Kubelet startup 2016-08-31 17:04:54 -04:00
kubelet_network_test.go Revert "Revert "syncNetworkUtil in kubelet and fix loadbalancerSourceRange on GCE"" 2016-08-18 10:19:48 -07:00
kubelet_network.go Merge pull request #29969 from ZTE-PaaS/zhangke-patch-015 2016-08-22 17:40:43 -07:00
kubelet_node_status_test.go Limit the number of names per image reported in the node status 2016-09-16 15:16:08 -07:00
kubelet_node_status.go Limit the number of names per image reported in the node status 2016-09-16 15:16:08 -07:00
kubelet_resources_test.go Fix default resource limits (node capacities) for downward api volumes 2016-08-16 14:41:17 -04:00
kubelet_resources.go Fix default resource limits (node capacities) for downward api volumes 2016-08-16 14:41:17 -04:00
kubelet_test.go Limit the number of names per image reported in the node status 2016-09-16 15:16:08 -07:00
kubelet_volumes_test.go Kubelet code move: volume / util 2016-08-22 23:35:11 -04:00
kubelet_volumes.go err is nil,remove it 2016-09-08 18:30:09 +08:00
kubelet.go Merge pull request #32816 from pmorie/kubelet-godoc 2016-09-19 20:33:21 -07:00
networks.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
oom_watcher_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
oom_watcher.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
pod_container_deletor_test.go Delete all dead containers only after pod syncing is done. 2016-08-15 14:36:51 -07:00
pod_container_deletor.go Delete all dead containers only after pod syncing is done. 2016-08-15 14:36:51 -07:00
pod_workers_test.go Log an event when container runtime exceeds grace-period during eviction 2016-09-07 13:28:08 -04:00
pod_workers.go Log an event when container runtime exceeds grace-period during eviction 2016-09-07 13:28:08 -04:00
reason_cache_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
reason_cache.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
root_context_linux.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
root_context_unsupported.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
runonce_test.go Add network-plugin-mtu option for MTU selection 2016-08-23 01:50:58 -04:00
runonce.go pods can not admitted should return directly 2016-07-30 11:47:50 +08:00
runtime.go optimize lock of runtimeState stuct 2016-08-03 13:19:22 +08:00
util.go Kubelet code move: volume / util 2016-08-22 23:35:11 -04:00
volume_host.go Fix default resource limits (node capacities) for downward api volumes 2016-08-16 14:41:17 -04:00