Pod's own IP address from inside a container in the Pod

Former-commit-id: b3742a35104390bc1375cff3cc95057cb12f61bb
This commit is contained in:
milvus-ci-robot 2019-10-18 11:42:07 +08:00
parent 492584bfcb
commit cd1e9961b8

View File

@ -26,9 +26,9 @@ spec:
- name: MYSQL_ROOT_PASSWORD
value: 123456
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
valueFrom:
fieldRef:
fieldPath: status.podIP
ports:
- containerPort: 3306
name: mysql