A common scenario is to install cert-manager in a custom namespace + restrict the installation to that one namespace (by configuring cert-manager controller and cainjector to perform leader election in that namespace)
This is relatively straightforward with helm by passing the new namespace via the --namespace flag and setting the global.leaderElection.namespace however it is more difficult for a user of kubectl apply or similar who needs to figure out where to change the namespace and what flags are used to configure leader election.
We could either document how to do this with static manifests (i.e what lines need changing + what flags need setting) or, if feasible, provide a kustomize file to do that.
Some places where a namespace needs to be configured:
- annotations on validating and mutation webhook configurations here and here
- leader election flag for cainjector here
- leader election flag for controller here
- cluster resource namesapce flag here
- all resource namespaces that the manifests deploy
Marking this as a good first issue as I think it might be interesting to pick up for somebody interested in getting started with cert-manager and getting a high level understanding of what components get deployed.
A common scenario is to install cert-manager in a custom namespace + restrict the installation to that one namespace (by configuring cert-manager controller and cainjector to perform leader election in that namespace)
This is relatively straightforward with helm by passing the new namespace via the
--namespaceflag and setting theglobal.leaderElection.namespacehowever it is more difficult for a user ofkubectl applyor similar who needs to figure out where to change the namespace and what flags are used to configure leader election.We could either document how to do this with static manifests (i.e what lines need changing + what flags need setting) or, if feasible, provide a kustomize file to do that.
Some places where a namespace needs to be configured:
Marking this as a good first issue as I think it might be interesting to pick up for somebody interested in getting started with cert-manager and getting a high level understanding of what components get deployed.