Переглянути джерело

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
       }
     }