From f10870571074672c14b29ea1f52a70bfbf1ceaf6 Mon Sep 17 00:00:00 2001 From: Sridhar Gaddam Date: Tue, 17 Nov 2020 18:17:26 +0530 Subject: [PATCH] Update route-agent Pod env with the host nodeName Related to: https://github.com/submariner-io/submariner-operator/issues/835 Signed-Off-by: Sridhar Gaddam --- submariner/templates/route-agent-ds.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/submariner/templates/route-agent-ds.yaml b/submariner/templates/route-agent-ds.yaml index 5a052013..4be93607 100644 --- a/submariner/templates/route-agent-ds.yaml +++ b/submariner/templates/route-agent-ds.yaml @@ -41,10 +41,14 @@ spec: value: "{{ .Values.submariner.clusterId }}" - name: SUBMARINER_DEBUG value: "{{ .Values.submariner.debug }}" - - name: SUBMARINER_CLUSTERCIDR + - name: SUBMARINER_CLUSTERCIDR value: "{{ .Values.submariner.clusterCidr }}" - name: SUBMARINER_SERVICECIDR value: "{{ .Values.submariner.serviceCidr }}" + - name: NODE_NAME + valueFrom: + fieldRef: + fieldPath: "spec.nodeName" resources: {{ toYaml .Values.routeAgent.resources | indent 10 }} securityContext: