get host ip address from pod

pull/100/head
Jimmy Song 2018-01-08 18:43:06 +08:00
parent 2b08be5a6a
commit 980a13d5e7
1 changed files with 4 additions and 0 deletions

View File

@ -178,6 +178,10 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: status.podIP fieldPath: status.podIP
- name: HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: MY_POD_SERVICE_ACCOUNT - name: MY_POD_SERVICE_ACCOUNT
valueFrom: valueFrom:
fieldRef: fieldRef: