Pārlūkot izejas kodu

kube-flannel-cfg: enable hairpin mode

Hairpin mode is needed to allow pods to communicate with themselves via
Service IP. This change is required as the kubelet --hairpin-mode flag
is not supported when CNI is being used.

This patch is picked from https://github.com/coreos/tectonic-installer/pull/1640
Yubao Liu 7 gadi atpakaļ
vecāks
revīzija
0d84c63eb2
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      Documentation/kube-flannel.yml

+ 1 - 0
Documentation/kube-flannel.yml

@@ -57,6 +57,7 @@ data:
       "name": "cbr0",
       "type": "flannel",
       "delegate": {
+        "hairpinMode": true,
         "isDefaultGateway": true
       }
     }