Hello, how is the correct way to send environment ...
# troubleshooting
f
Hello, how is the correct way to send environment variables to FlinkDeployments and FlinkSessionJobs? In case of FlinkSessionJobs, i want to send for example MY_PASSWORD but prevent that only one job can access to it without any conflict, is it posible?
Hello, anyone who can help me?
m
Good Morning, we've set env vars for our FlinkDeployments by updating the
podTemplate
in the k8s manifest https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-release-1.9/docs/custom-resource/pod-template/
the docs show how to setup a volume Mount, but it can also updated to set env vars
Copy code
podTemplate:
  spec:
    containers:
      - name: flink-main-container
        env:
          name: MY_PASSWORD
          value: "super-secret"
...
...
f
Thanks for the answer, and what about the FlinkSessionJob? because in this scenario the cluster already exists and there are many programs that I would like to run with isolated env vars
how is the correct way to include variables in FlinkSessionJob?