You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What problem are you trying to solve?
I am currently running Karpenter "outside" of the cluster, specifically Karpenter itself isn't able to discover API server via K8s Services however we have other method of service discovery to find the API server. We provide Karpenter with a kubeconfig and uses the KUBECONFIG env var. When attempting to run Karpenter with this configuration we run into
failed to setup manager: unable to find leader election namespace: not running in-cluster, please specify LeaderElectionNamespace
I was able to figure out the solution for us here, and it seems it would work in the general case as well. The solution is just passing LeaderElectionNamespace as system.Namespace() here:
Description
What problem are you trying to solve?
I am currently running Karpenter "outside" of the cluster, specifically Karpenter itself isn't able to discover API server via K8s Services however we have other method of service discovery to find the API server. We provide Karpenter with a kubeconfig and uses the
KUBECONFIG
env var. When attempting to run Karpenter with this configuration we run intoit seems like the controller runtime that implements leader election allows us to run outside but we need to provide the leaderelectionnamespace
https://github.com/kubernetes-sigs/controller-runtime/blob/main/pkg/leaderelection/leader_election.go#L116
I don't see any configuration that allows us to specify this at this time.
How important is this feature to you?
This is pretty important since we won't be able to run Karpenter in leader elected mode.
The text was updated successfully, but these errors were encountered: