mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
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
This commit is contained in:
commit
d53ddbe6e6
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user