cert-manager
by [riftbit]
Cert Manager is a Kubernetes add-on to automate the management and issuance of TLS certificates from various issuing sources.
About this chart
Cert Manager
cert-manager is a native Kubernetes certificate management controller. It can help with issuing certificates from a variety of sources, such as Let’s Encrypt, HashiCorp Vault, Venafi, a simple signing key pair, or self signed.
TL;DR
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/cert-manager
Introduction
Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.
This chart bootstraps a cert-manager Deployment in a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.
Prerequisites
- Kubernetes 1.12+
- Helm 3.1.0
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/cert-manager
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release helm release:
$ helm uninstall my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
logLevel | Set up cert manager log level | 2 |
leaderElection.namespace | Namespace which leaderElection works. | kube-system |
installCRDs | Flag to install Cert Manager CRDs | false |
replicaCount | Number of Cert Manager replicas | 1 |
Controller deployment parameters
| Name | Description | Value |
|---|---|---|
controller.replicaCount | Number of Controller replicas | 1 |
controller.image.registry | Controller image registry | docker.io |
controller.image.repository | Controller image repository | bitnami/cert-manager |
controller.image.tag | Controller image tag (immutable tags are recommended) | 1.5.3-debian-10-r29 |
controller.image.pullPolicy | Controller image pull policy | IfNotPresent |
controller.image.pullSecrets | Controller image pull secrets | [] |
controller.image.debug | Controller image debug mode | false |
controller.acmesolver.image.registry | Controller image registry | docker.io |
controller.acmesolver.image.repository | Controller image repository | bitnami/acmesolver |
controller.acmesolver.image.tag | Controller image tag (immutable tags are recommended) | 1.5.3-debian-10-r29 |
controller.acmesolver.image.pullPolicy | Controller image pull policy | IfNotPresent |
controller.acmesolver.image.pullSecrets | Controller image pull secrets | [] |
controller.acmesolver.image.debug | Controller image debug mode | false |
controller.resources.limits | The resources limits for the Controller container | {} |
controller.resources.requests | The requested resources for the Controller container | {} |
controller.podSecurityContext.enabled | Enabled Controller pods' Security Context | true |
controller.podSecurityContext.fsGroup | Set Controller pod's Security Context fsGroup | 1001 |
controller.containerSecurityContext.enabled | Enabled Controller containers' Security Context | true |
controller.containerSecurityContext.runAsUser | Set Controller container's Security Context runAsUser | 1001 |
controller.containerSecurityContext.runAsNonRoot | Set Controller container's Security Context runAsNonRoot | true |
controller.podAffinityPreset | Pod affinity preset. Ignored if controller.affinity is set. Allowed values: soft or hard | "" |
controller.podAntiAffinityPreset | Pod anti-affinity preset. Ignored if controller.affinity is set. Allowed values: soft or hard | soft |
controller.nodeAffinityPreset.type | Node affinity preset type. Ignored if controller.affinity is set. Allowed values: soft or hard | "" |
controller.nodeAffinityPreset.key | Node label key to match. Ignored if controller.affinity is set | "" |
controller.nodeAffinityPreset.values | Node label values to match. Ignored if controller.affinity is set | [] |
controller.affinity | Affinity for Cert Manager Controller | {} |
controller.nodeSelector | Node labels for pod assignment | {} |
controller.containerPort | Controller container port | 9402 |
controller.command | Override Controller default command | [] |
controller.args | Override Controller default args | [] |
controller.priorityClassName | Controller pod priority class name | "" |
controller.hostAliases | Custom host aliases for Controller pods | [] |
controller.tolerations | Tolerations for pod assignment | [] |
controller.podLabels | Extra labels for Controller pods | {} |
controller.podAnnotations | Annotations for Controller pods | {} |
controller.lifecycleHooks | Add lifecycle hooks to the Controller deployment | {} |
controller.updateStrategy.type | Controller deployment update strategy | RollingUpdate |
controller.updateStrategy.rollingUpdate | Controller deployment rolling update configuration parameters | {} |
controller.extraEnvVars | Add extra environment variables to the Controller container | [] |
controller.extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | "" |
controller.extraEnvVarsSecret | Name of existing Secret containing extra env vars | "" |
controller.extraVolumes | Optionally specify extra list of additional volumes for Controller pods | [] |
controller.extraVolumeMounts | Optionally specify extra list of additional volumeMounts for Controller container(s) | [] |
controller.initContainers | Add additional init containers to the Controller pods | [] |
controller.sidecars | Add additional sidecar containers to the Controller pod | [] |
controller.serviceAccount.create | Specifies whether a ServiceAccount should be created | true |
controller.serviceAccount.name | The name of the ServiceAccount to use. | "" |
controller.serviceAccount.annotations | Additional custom annotations for the ServiceAccount | {} |
Webhook deployment parameters
| Name | Description | Value |
|---|---|---|
webhook.replicaCount | Number of Webhook replicas | 1 |
webhook.image.registry | Webhook image registry | docker.io |
webhook.image.repository | Webhook image repository | bitnami/cert-manager-webhook |
webhook.image.tag | Webhook image tag (immutable tags are recommended) | 1.5.3-debian-10-r29 |
webhook.image.pullPolicy | Webhook image pull policy | IfNotPresent |
webhook.image.pullSecrets | Webhook i |
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 v0.1.20 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