Преглед на файлове

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 години
родител
ревизия
0d84c63eb2
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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
       }
     }