MF
env:
- name: HOST_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.hostIP
...
args:
- -web.listen-address=${HOSTIP}:9100
Size: a a a
MF
env:
- name: HOST_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.hostIP
...
args:
- -web.listen-address=${HOSTIP}:9100
kr
MF
MF
kr
The following information is available to a Pod through the downward API:
The pod’s name
The pod’s namespace
The pod’s IP
A container’s cpu limit
A container’s cpu request
A container’s memory limit
A container’s memory request
kr
E
MF
The following information is available to a Pod through the downward API:
The pod’s name
The pod’s namespace
The pod’s IP
A container’s cpu limit
A container’s cpu request
A container’s memory limit
A container’s memory request
$ kubectl get po --namespace=blog blog-4154525675-68dig -o jsonpath='{.status.hostIP}'
10.83.8.200%
kr
kr
kr
kr
kr
kr
MF
* spec.template.spec.containers[0].env[0].valueFrom.fieldRef.fieldPath: Invalid value: "status.hostIP": error converting fieldPath: field label not supported: status.hostIP
MF
* spec.template.spec.containers[0].env[0].valueFrom.fieldRef.fieldPath: Unsupported value: "spec.nodeName": supported values: metadata.name, metadata.namespace, status.podIP
MF