Disable Automount API token in flux controllers #5361
-
|
I am trying to disable auto mount API token in the controllers by applying “automountServiceAccountToken: false” on respective service account and deployment. Either way is not working and getting an error like “unable to load in-cluster config, error open /var/run/secrets/kubernets.io/serviceaccount/token: no such file or directory” and “setting KUBERNETES_MASTER environment variable, error cause: [{error: no configuration has been provided, try setting KUBERNETES_MASTER environment variable}]. Is there any process to disable api token auto mount in the flux controllers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Absolutely not. You are disabling an extremely important piece of configuration, this token is how Kubernetes controllers get access to the Kubernetes API to manage resources. Every single controller out there needs this. You are basically trying to kill Flux by doing that. |
Beta Was this translation helpful? Give feedback.
Absolutely not. You are disabling an extremely important piece of configuration, this token is how Kubernetes controllers get access to the Kubernetes API to manage resources. Every single controller out there needs this. You are basically trying to kill Flux by doing that.