Commit d53ddbe6 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #27016 from andyzheng0831/gci-docker0

Automatic merge from submit-queue GCI: fix the issue #26379 This PR deletes docker0 explicitly to fix the issue. In some cases, coexistence of docker0 and cbr0 make troubles in GCI-based cluster instances. I verified it in GKE. With the fix, fluentd-gcp pod shows no error. "curl google.com" can work inside a pod. Mark it as P0 to match the issue priority. @a-robinson @roberthbailey @freehan @kubernetes/goog-image
parents 46f16718 64ffe905
......@@ -359,6 +359,11 @@ function start-kubelet {
fi
echo "KUBELET_OPTS=\"${flags}\"" > /etc/default/kubelet
# Delete docker0 to avoid interference
iptables -t nat -F || true
ip link set docker0 down || true
brctl delbr docker0 || true
systemctl start kubelet.service
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment