Re: Using the official flink operator and kubernetes secrets

2022-05-04 Thread Yang Wang
fying job startup decision-making >> while following existing conventions. >> >> -- >> *From:* Yang Wang >> *Sent:* Tuesday, May 3, 2022 7:22 AM >> *To:* Őrhidi Mátyás >> *Cc:* Francis Conroy ; user < >> user@

Re: Using the official flink operator and kubernetes secrets

2022-05-04 Thread Francis Conroy
-- > *From:* Yang Wang > *Sent:* Tuesday, May 3, 2022 7:22 AM > *To:* Őrhidi Mátyás > *Cc:* Francis Conroy ; user < > user@flink.apache.org> > *Subject:* Re: Using the official flink operator and kubernetes secrets > > Flink could not sup

Re: Using the official flink operator and kubernetes secrets

2022-05-04 Thread Meissner, Dylan
SSWORD)" ​ It would be a great addition, simplifying job startup decision-making while following existing conventions. From: Yang Wang Sent: Tuesday, May 3, 2022 7:22 AM To: Őrhidi Mátyás Cc: Francis Conroy ; user Subject: Re: Using the official flin

Re: Using the official flink operator and kubernetes secrets

2022-05-03 Thread Yang Wang
Flink could not support environment replacement in the args. I think you could access the env via "*System.getenv()*" in the user main method. It should work since the user main method is executed in the JobManager side. Best, Yang Őrhidi Mátyás 于2022年4月28日周四 19:27写道: > Also, > > just

Re: Using the official flink operator and kubernetes secrets

2022-04-28 Thread Őrhidi Mátyás
Also, just declaring it in the flink configs should be sufficient, no need to define it in the pod templates: flinkConfiguration: kubernetes.env.secretKeyRef: "env:DJANGO_TOKEN,secret:switchdin-django-token,key:token" Best, Matyas On Thu, Apr 28, 2022 at 1:17 PM Őrhidi Mátyás wrote: >

Re: Using the official flink operator and kubernetes secrets

2022-04-28 Thread Őrhidi Mátyás
Hi Francis, I suggest accessing the environment variables directly, no need to pass them as command arguments I guess. Best, Matyas On Thu, Apr 28, 2022 at 11:31 AM Francis Conroy < francis.con...@switchdin.com> wrote: > Hi all, > > I'm trying to use a kubernetes secret as a command line

Using the official flink operator and kubernetes secrets

2022-04-28 Thread Francis Conroy
Hi all, I'm trying to use a kubernetes secret as a command line argument in my job and the text replacement doesn't seem to be happening. I've verified passing the custom args via the command line on my local flink cluster but can't seem to get the environment var replacement to work.