diff --git a/charts/emissary-ingress/templates/deployment.yaml b/charts/emissary-ingress/templates/deployment.yaml index 2c4d17a0a1..37120eb1a1 100644 --- a/charts/emissary-ingress/templates/deployment.yaml +++ b/charts/emissary-ingress/templates/deployment.yaml @@ -216,6 +216,10 @@ spec: - name: admin containerPort: {{ .Values.adminService.port }} env: + - name: HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP {{- if .Values.prometheusExporter.enabled }} - name: STATSD_ENABLED value: "true" diff --git a/manifests/emissary/emissary-defaultns.yaml.in b/manifests/emissary/emissary-defaultns.yaml.in index 5126f391ff..edb3456e30 100644 --- a/manifests/emissary/emissary-defaultns.yaml.in +++ b/manifests/emissary/emissary-defaultns.yaml.in @@ -272,6 +272,10 @@ spec: weight: 100 containers: - env: + - name: HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP - name: AMBASSADOR_NAMESPACE valueFrom: fieldRef: diff --git a/manifests/emissary/emissary-emissaryns.yaml.in b/manifests/emissary/emissary-emissaryns.yaml.in index 906e58a8cf..dbfa00d5ed 100644 --- a/manifests/emissary/emissary-emissaryns.yaml.in +++ b/manifests/emissary/emissary-emissaryns.yaml.in @@ -272,6 +272,10 @@ spec: weight: 100 containers: - env: + - name: HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP - name: AMBASSADOR_NAMESPACE valueFrom: fieldRef: diff --git a/python/tests/integration/manifests/ambassador.yaml b/python/tests/integration/manifests/ambassador.yaml index 157edb6997..f51dea78d9 100644 --- a/python/tests/integration/manifests/ambassador.yaml +++ b/python/tests/integration/manifests/ambassador.yaml @@ -133,6 +133,10 @@ metadata: spec: containers: - env: + - name: HOST_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP - name: AMBASSADOR_NAMESPACE valueFrom: fieldRef: