Hi,

The pod template file when you submit a Flink application via "flink
run-application ...
-Dkubernetes.pod-template-file=/path/of/pod-template.yaml" is a
*client-local* file.
You do not need to bundle it into the docker image.


Best,
Yang

黄剑文 <jianwen.huang....@gmail.com> 于2021年12月23日周四 23:00写道:

> Flink version:1.13
> I want to define some hosts in Flink jobmanager and taskmanager. I consult
> Flink official documents and find a way that define hostAlias in  Pod
> Template to solve it.
>
>  
> https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/resource-providers/native_kubernetes/#pod-template
> <https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/resource-providers/native_kubernetes/#pod-template>
>
> However.The  Pod Template must be  bundled into the image. The hosts is
> different for different environments(development,test,prod etc).That means
> that I have to maintain different images for different environments.
> Are there have a better way to solve this problem ?
> thx.
>

Reply via email to