Re: Read configmap data in FlinkDeployment

2024-03-18 Thread Yaroslav Tkachenko
This looks like an indentation error, just indent everything by two extra
spaces after line 13.

On Mon, Mar 18, 2024 at 3:19 AM Suyash Jaiswal 
wrote:

> Hi Yaroslav,
>
>
>
> Thanks for the swift reply, I understand that it goes under *podTemplate,
> *but can I get some sample where configmap is used because I am not able
> to get the actual yaml structure for using configmap.
>
>
>
> I tried yaml structure below but, I am getting error.
>
>
>
>
>
> error: error parsing flink-117.yaml: error converting YAML to JSON: yaml:
> line 14: did not find expected '-' indicator
>
>
>
> Thanks,
>
> Suyash Jaiswal
>
>
>
>
>
> *From:* Yaroslav Tkachenko 
> *Sent:* Monday, March 18, 2024 3:19 PM
> *To:* Suyash Jaiswal 
> *Cc:* user@flink.apache.org
> *Subject:* Re: Read configmap data in FlinkDeployment
>
>
>
> * EXTERNAL EMAIL *
>
> Hi Suyash,
>
>
>
> You can expose your configmap values as environment variables using the
> *podTemplate* parameter (see:
> https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-release-1.8/docs/custom-resource/reference/).
> This can be configured individually for TaskManager, JobManager or for
> both.
>
>
>
> On Mon, Mar 18, 2024 at 2:36 AM Suyash Jaiswal <
> suyash.jais...@hitachids.com> wrote:
>
> Hi All,
>
>
>
> I was trying to deploy Apache-Flink in my EKS cluster. I can successfully
> deploy it, but now I want to expose some variable via the configmap, these
> variables are used by my sessionjob.
>
> I need help with yaml structure of how/where to expose the configmap
> variables to make It visible for the sessionjob.
>
>
>
> My Sample.jar file reads some variables from a configmap, where do I
> configure this in my deployment yaml.
>
>
>
> Deployment:
>
>
>
>
>
> SessionJob:
>
>
>
>


Re: Read configmap data in FlinkDeployment

2024-03-18 Thread Yaroslav Tkachenko
Hi Suyash,

You can expose your configmap values as environment variables using the
*podTemplate* parameter (see:
https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-release-1.8/docs/custom-resource/reference/).
This can be configured individually for TaskManager, JobManager or for
both.

On Mon, Mar 18, 2024 at 2:36 AM Suyash Jaiswal 
wrote:

> Hi All,
>
>
>
> I was trying to deploy Apache-Flink in my EKS cluster. I can successfully
> deploy it, but now I want to expose some variable via the configmap, these
> variables are used by my sessionjob.
>
> I need help with yaml structure of how/where to expose the configmap
> variables to make It visible for the sessionjob.
>
>
>
> My Sample.jar file reads some variables from a configmap, where do I
> configure this in my deployment yaml.
>
>
>
> Deployment:
>
>
>
>
>
> SessionJob:
>
>
>
>


Read configmap data in FlinkDeployment

2024-03-18 Thread Suyash Jaiswal
Hi All,

I was trying to deploy Apache-Flink in my EKS cluster. I can successfully 
deploy it, but now I want to expose some variable via the configmap, these 
variables are used by my sessionjob.
I need help with yaml structure of how/where to expose the configmap variables 
to make It visible for the sessionjob.

My Sample.jar file reads some variables from a configmap, where do I configure 
this in my deployment yaml.

Deployment:

[cid:image001.png@01DA7944.D328E2A0]

SessionJob:

[cid:image002.png@01DA7945.43635AA0]