Re: Using the official flink operator and kubernetes secrets

2022-05-04 Thread Yang Wang
eat 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 &l

Re: Using the official flink operator and kubernetes secrets

2022-05-04 Thread Francis Conroy
ions. > > ------ > *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 > > Fl

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 declaring

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: > Hi

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 argume