Hi, Thanks a lot for your clarifications. It makes perfect sense.
Mads ________________________________ From: Gyula Fóra <gyula.f...@gmail.com> Sent: 23 May 2022 15:39 To: Mads Ellersgaard Kalør <m...@kaunt.com> Cc: user@flink.apache.org <user@flink.apache.org> Subject: Re: Flink Kubernetes Operator: Specifying env variables from ConfigMaps Hi Mads! I think you need to use the podTemplate for this. You can either do it in the top level spec or customize it for tm/jm respectively. Keep in mind that pod templates are merged with the base flink template so it's enough to specify the fields relevant for you (in these case the env variables for the main container). So it should be fairly simple :) Let us know if you hit any issues. Cheers Gyula On Mon, May 23, 2022 at 6:20 AM Mads Ellersgaard Kalør <m...@kaunt.com<mailto:m...@kaunt.com>> wrote: Hi, We use a number of environment variables to configure our Flink pipelines, such as Kafka connection info, hostnames for external services etc. This works well when running a standalone Kubernetes deployment or on a local environment in Docker, but I cannot find any documentation about how to specify environment variables (from ConfigMaps or Secrets) in the Flink Kubernetes Operator (I would expect it to be in the JobSpec part of the FlinkDeploymentSpec). Do I have to create a PodTemplate, or is there a simpler way? Thanks, Mads