cert-manager
A Helm chart for cert-manager
About this chart
cert-manager
cert-manager creates TLS certificates for workloads in your Kubernetes or OpenShift cluster and renews the certificates before they expire.
cert-manager can obtain certificates from a variety of certificate authorities, including: Let's Encrypt, HashiCorp Vault, CyberArk and private PKI.
Prerequisites
Make sure you are using a version of Kubernetes that is supported by cert-manager. For more information, see the Supported Releases page.
Installing the Chart
Full installation instructions, including details on how to configure extra functionality in cert-manager can be found in the installation docs.
To install the chart with the release name cert-manager:
helm install \
cert-manager oci://quay.io/jetstack/charts/cert-manager \
--namespace cert-manager \
--create-namespace \
--version v1.21.3 \
--set crds.enabled=true
In order to begin issuing certificates, you will need to set up a ClusterIssuer or Issuer resource (for example, by creating a 'letsencrypt-staging' issuer).
More information on the different types of issuers and how to configure them can be found in our documentation.
For information on how to configure cert-manager to automatically provision Certificates for Ingress resources, take a look at the Securing Ingresses documentation.
Tip: List all releases using
helm list
Upgrading the Chart
Special considerations may be required when upgrading the Helm chart, and these are documented in our full upgrading guide.
Please check here before performing upgrades!
Uninstalling the Chart
To uninstall/delete the cert-manager deployment:
helm delete cert-manager --namespace cert-manager
The command removes all the Kubernetes components associated with the chart and deletes the release.
If you want to completely uninstall cert-manager from your cluster, you will also need to delete the previously installed CustomResourceDefinition resources.
☢️ This will remove all
Issuer,ClusterIssuer,Certificate,CertificateRequest,OrderandChallengeresources from the cluster:kubectl delete crd \ issuers.cert-manager.io \ clusterissuers.cert-manager.io \ certificates.cert-manager.io \ certificaterequests.cert-manager.io \ orders.acme.cert-manager.io \ challenges.acme.cert-manager.io
Configuration
Global
global.imagePullSecrets ~ array
Default value:
[]
Reference to one or more secrets to be used when pulling images. For more information, see Pull an Image from a Private Registry.
For example:
imagePullSecrets:
- name: "image-pull-secret"
global.nodeSelector ~ object
Default value:
{}
Global node selector
The nodeSelector on Pods tells Kubernetes to schedule Pods on the nodes with matching labels. For more information, see Assigning Pods to Nodes.
If a component-specific nodeSelector is also set, it will be merged and take precedence.
global.commonLabels ~ object
Default value:
{}
Labels to apply to all resources.
These labels are also applied to dynamically-created ACME HTTP01 solver resources
(pods, services, ingresses, or Gateway API HTTPRoutes).
The following ACME identity label keys are reserved and will be silently ignored on dynamically-created resources: acme.cert-manager.io/http-domain, acme.cert-manager.io/http-token, acme.cert-manager.io/http01-solver. For per-Issuer-specific labels, use the HTTP01 ingress solver podTemplate and ingressTemplate fields for pod/ingress resources, or the gatewayHTTPRoute solver labels field for Gateway API HTTPRoute resources.
global.revisionHistoryLimit ~ number
The number of old ReplicaSets to retain to allow rollback (if not set, the default Kubernetes value is set to 10).
global.priorityClassName ~ string
Default value:
""
The optional priority class to be used for the cert-manager pods.
global.hostUsers ~ bool
Set all pods to run in a user namespace without host access. Experimental: may be removed once the Kubernetes User Namespaces feature is GA.
Requirements:
- Kubernetes ≥ 1.33, or
- Kubernetes 1.27–1.32 with UserNamespacesSupport feature gate enabled.
Set to false to run pods in a user namespace without host access.
See limitations for details.
global.rbac.create ~ bool
Default value:
true
Create required ClusterRoles and ClusterRoleBindings for cert-manager.
global.rbac.aggregateClusterRoles ~ bool
Default value:
true
Aggregate ClusterRoles to Kubernetes default user-facing roles. For more information, see User-facing roles
global.podSecurityPolicy.enabled ~ bool
Default value:
false
Create PodSecurityPolicy for cert-manager.
Note that PodSecurityPolicy was deprecated in Kubernetes 1.21 and removed in Kubernetes 1.25.
global.podSecurityPolicy.useAppArmor ~ bool
Default value:
true
Configure the PodSecurityPolicy to use AppArmor.
global.logLevel ~ number
Default value:
2
Set the verbosity of cert-manager. A range of 0 - 6, with 6 being the most verbose.
global.leaderElection.namespace ~ string
Default value:
kube-system
Override the namespace used for the leader election lease.
global.leaderElection.leaseDuration ~ string
The duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate.
global.leaderElection.renewDeadline ~ string
The interval between attempts by the acting master to renew a leadership slot before it stops leading. This must be less than or equal to the lease duration.
global.leaderElection.retryPeriod ~ string
The duration the clients should wait between attempting acquisition and renewal of a leadership.
global.runtimeClassName ~ string
Default value:
""
A Kubernetes Runtime Class to apply to ACME HTTP01 solver pods, if required. For more information, see Runtime Class.
For example:
runtimeClassName: gvisor
installCRDs ~ bool
Default value:
false
This option is equivalent to setting crds.enabled=true and crds.keep=true. Deprecated: use crds.enabled and crds.keep instead.
crds.enabled ~ bool
Default value:
false
This option decides if the CRDs should be installed as part of the Helm installation.
crds.keep ~ bool
Default value:
true
This option makes it so that the "helm.sh/resource-policy": keep annotation is added to the CRD. This will prevent Helm from uninstalling the CRD when the Helm release is uninstalled. WARNING: when the CRDs are removed, all cert-manager custom resources
(Certificates, Issuers, ...) will be removed too by the garbage collector.
Controller
replicaCount ~ number
Default value:
1
The number of replicas of the cert-manager controller to run.
The default is 1, but in production set this to 2 or 3 to provide high availability.
If replicas > 1, consider setting podDisruptionBudget.enabled=true.
Note that cert-manager uses leader election to ensure that there can only be a single instance active at a time.
strategy ~ object
Default value:
{}
Deployment update strategy for the cert-manager controller deployment. For more information, see the Kubernetes documentation.
For example:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
podDisruptionBudget.enabled ~ bool
Default value:
false
Enable or disable the PodDisruptionBudget resource.
This prevents downtime during voluntary disruptions such as during a Node upgrade. For example, the PodDisruptionBudget will block kubectl drain if it is used on the Node where the only remaining cert-manager
Pod is currently running.
podDisruptionBudget.minAvailable ~ unknown
This configures the minimum available pods for disruptions. It can either be set to an integer (e.g., 1) or a percentage value (e.g., 25%).
It cannot be used if maxUnavailable is set.
podDisruptionBudget.maxUnavailable ~ unknown
This configures the maximum unavailable pods for disruptions. It can either be set to an integer (e.g., 1) or a percentage value (e.g., 25%). it cannot be used if minAvailable is set.
podDisruptionBudget.unhealthyPodEvictionPolicy ~ string
This configures how to act with unhealthy pods during eviction. Note that this requires Kubernetes 1.31 or PDBUnhealthyPodEvictionPolicy feature gate enabled for the cluster to work.
featureGates ~ string
Default value:
""
A comma-separated list of feature gates that should be enabled on the controller pod.
maxConcurrentChallenges ~ number
Default value:
60
The maximum number of challenges that can be scheduled as 'processing' at once.
imageRegistry ~ string
Default value:
quay.io
The container registry used for all cert-manager images by default. This can include path prefixes (e.g. artifactory.example.com/docker).
imageNamespace ~ string
Default value:
jetstack
The repository namespace used for all cert-manager images by default.
Examples:
- jetstack
- cert-manager
image.registry ~ string
Deprecated: per-component registry prefix.
If set, this value is prepended to the image repository that the chart would otherwise render. This applies both when image.repository is set and when the repository is computed from
imageRegistry + imageNamespace + image.name.
This can produce "double registry" style references such as legacy.example.io/quay.io/jetstack/.... Prefer using the global imageRegistry/imageNamespace values.
image.name ~ string
Default value:
cert-manager-controller
The image name for the cert-manager controller.
This is used (together with imageRegistry and imageNamespace) to construct the full image reference.
image.repository ~ string
Default value:
""
Full repository override (takes precedence over imageRegistry, imageNamespace, and image.name).
Example: quay.io/jetstack/cert-manager-controller
image.tag ~ string
Override the image tag to deploy by setting this variable. If no value is set, the chart's appVersion is used.
image.digest ~ string
Setting a digest pins the image. If a tag is also set, the rendered reference will include both ("image:tag@digest"), though only the digest will be used for pulling.
image.pullPolicy ~ string
Default value:
IfNotPresent
Kubernetes imagePullPolicy on Deployment.
clusterResourceNamespace ~ string
Default value:
""
Override the namespace used to store DNS provider credentials etc. for ClusterIssuer resources. By default, the same namespace as cert-manager is deployed within is used. This namespace will not be automatically created by the Helm chart.
namespace ~ string
Default value:
""
This namespace allows you to define where the services are installed into. If not set then they use the namespace of the release. This is helpful when installing cert manager as a chart dependency (sub chart).
fullnameOverride ~ string
Override the "cert-manager.fullname" value. This value is used as part of most of the names of the resources created by this Helm chart.
nameOverride ~ string
Override the "cert-manager.name" value, which is used to annotate some of the resources that are created by this Chart (using "app.kubernetes.io/name"). NOTE: There are some inconsistencies in the Helm chart when it comes to these annotations (some resources use, e.g., "cainjector.name" which resolves to the value "cainjector").
serviceAccount.create ~ bool
Default value:
true
Specifies whether a service account should be created.
serviceAccount.name ~ string
The name of the service account to use.
If not set and create is true, a name is generated using the fullname template.
serviceAccount.annotations ~ object
Optional additional annotations to add to the controller's Service Account. Templates are allowed for both keys and values.
Example using templating:
annotations:
"{{ .Chart.Name }}-helm-chart/version": "{{ .Chart.Version }}"
Deploy cert-manager with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cert-manager on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcert-manager is pinned at v1.21.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply