Skip to content

Document how to install cert-manager in a different namespace #944

Description

@irbekrm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions