From 3cfbc1a79abbed2b99897b8b36a7abbf303f8e18 Mon Sep 17 00:00:00 2001 From: Luke Seelenbinder Date: Mon, 1 Oct 2018 09:06:13 +0200 Subject: [PATCH] Add Pod IP to Flannel manifest. (#3379) --- roles/network_plugin/flannel/templates/cni-flannel.yml.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/network_plugin/flannel/templates/cni-flannel.yml.j2 b/roles/network_plugin/flannel/templates/cni-flannel.yml.j2 index d2340eed8..3f2119457 100644 --- a/roles/network_plugin/flannel/templates/cni-flannel.yml.j2 +++ b/roles/network_plugin/flannel/templates/cni-flannel.yml.j2 @@ -85,6 +85,10 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + - name: POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP volumeMounts: - name: run mountPath: /run