Canbin Zheng created FLINK-15654:
------------------------------------
Summary: Expose podIP for Containers by Environment Variables
Key: FLINK-15654
URL:
https://issues.apache.org/jira/browse/FLINK-15654 Project: Flink
Issue Type: New Feature
Components: Deployment / Kubernetes
Environment: {code:java}
//代码占
{code}
Reporter: Canbin Zheng
Expose IP information of a Pod for its containers to use.
{code:java}
new ContainerBuilder()
.addNewEnv()
.withName(ENV_JOBMANAGER_BIND_ADDRESS)
.withValueFrom(new EnvVarSourceBuilder()
.withNewFieldRef("v1", "status.podIP")
.build())
.endEnv()
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)