Closed cyrilou242 closed 4 years ago
Hi @cyrilou242,
unfortunately, custom ServiceAccounts are not supported at the moment. We might be able to squeeze this into our next minor release as you are not the only one looking for this.
Please see https://docs.ververica.com/user_guide/deployments/configure_kubernetes for what is currently possible. Do you have a way to work around this issue for now?
Best,
Konstantin
Hello @knaufk than you for your answer. We'd rather not rely on service account keys passed inside the kube, and opening our gcp components (in a private network) is not an option either.
I'll see what can be done, but If the feature is coming soon I think we can wait a bit.
edit: we'll begin with service account keys passed inside the kube
So we did it by passing a service account key and setting an environment variable.
Thanks for your help again!
Hello, I (and @sysC0D) have a hard time understanding how we are supposed to pass service accounts to taskmanager and jobmanager pods.
We defined a service account
flink-project1
, which is supposed to be used for pods in ourproject1
node-pool, where vvp-jobs pods are run.But it looks like when pods are launched, service accounts are generated for them: for instance for task manager we can see such service account being generated and used :
We can see it the the taskmanager deployment yaml config:
(yaml is not complete) Notice
serviceAccount
andserviceAccountName
. (service accounts don't have the same names in my kubectl command and in the yaml because they do not come from the same deployment but you get the idea)We can see the same in the jobmanager Job yaml config:
Would there be a way to pass our flink-project1 service account instead of the generated service accounts ?