cert-manager

by [riftbit]

Helm chartv0.1.20App 1.5.3Verified publisher

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

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release[]
logLevelSet up cert manager log level2
leaderElection.namespaceNamespace which leaderElection works.kube-system
installCRDsFlag to install Cert Manager CRDsfalse
replicaCountNumber of Cert Manager replicas1

Controller deployment parameters

NameDescriptionValue
controller.replicaCountNumber of Controller replicas1
controller.image.registryController image registrydocker.io
controller.image.repositoryController image repositorybitnami/cert-manager
controller.image.tagController image tag (immutable tags are recommended)1.5.3-debian-10-r29
controller.image.pullPolicyController image pull policyIfNotPresent
controller.image.pullSecretsController image pull secrets[]
controller.image.debugController image debug modefalse
controller.acmesolver.image.registryController image registrydocker.io
controller.acmesolver.image.repositoryController image repositorybitnami/acmesolver
controller.acmesolver.image.tagController image tag (immutable tags are recommended)1.5.3-debian-10-r29
controller.acmesolver.image.pullPolicyController image pull policyIfNotPresent
controller.acmesolver.image.pullSecretsController image pull secrets[]
controller.acmesolver.image.debugController image debug modefalse
controller.resources.limitsThe resources limits for the Controller container{}
controller.resources.requestsThe requested resources for the Controller container{}
controller.podSecurityContext.enabledEnabled Controller pods' Security Contexttrue
controller.podSecurityContext.fsGroupSet Controller pod's Security Context fsGroup1001
controller.containerSecurityContext.enabledEnabled Controller containers' Security Contexttrue
controller.containerSecurityContext.runAsUserSet Controller container's Security Context runAsUser1001
controller.containerSecurityContext.runAsNonRootSet Controller container's Security Context runAsNonRoottrue
controller.podAffinityPresetPod affinity preset. Ignored if controller.affinity is set. Allowed values: soft or hard""
controller.podAntiAffinityPresetPod anti-affinity preset. Ignored if controller.affinity is set. Allowed values: soft or hardsoft
controller.nodeAffinityPreset.typeNode affinity preset type. Ignored if controller.affinity is set. Allowed values: soft or hard""
controller.nodeAffinityPreset.keyNode label key to match. Ignored if controller.affinity is set""
controller.nodeAffinityPreset.valuesNode label values to match. Ignored if controller.affinity is set[]
controller.affinityAffinity for Cert Manager Controller{}
controller.nodeSelectorNode labels for pod assignment{}
controller.containerPortController container port9402
controller.commandOverride Controller default command[]
controller.argsOverride Controller default args[]
controller.priorityClassNameController pod priority class name""
controller.hostAliasesCustom host aliases for Controller pods[]
controller.tolerationsTolerations for pod assignment[]
controller.podLabelsExtra labels for Controller pods{}
controller.podAnnotationsAnnotations for Controller pods{}
controller.lifecycleHooksAdd lifecycle hooks to the Controller deployment{}
controller.updateStrategy.typeController deployment update strategyRollingUpdate
controller.updateStrategy.rollingUpdateController deployment rolling update configuration parameters{}
controller.extraEnvVarsAdd extra environment variables to the Controller container[]
controller.extraEnvVarsCMName of existing ConfigMap containing extra env vars""
controller.extraEnvVarsSecretName of existing Secret containing extra env vars""
controller.extraVolumesOptionally specify extra list of additional volumes for Controller pods[]
controller.extraVolumeMountsOptionally specify extra list of additional volumeMounts for Controller container(s)[]
controller.initContainersAdd additional init containers to the Controller pods[]
controller.sidecarsAdd additional sidecar containers to the Controller pod[]
controller.serviceAccount.createSpecifies whether a ServiceAccount should be createdtrue
controller.serviceAccount.nameThe name of the ServiceAccount to use.""
controller.serviceAccount.annotationsAdditional custom annotations for the ServiceAccount{}

Webhook deployment parameters

NameDescriptionValue
webhook.replicaCountNumber of Webhook replicas1
webhook.image.registryWebhook image registrydocker.io
webhook.image.repositoryWebhook image repositorybitnami/cert-manager-webhook
webhook.image.tagWebhook image tag (immutable tags are recommended)1.5.3-debian-10-r29
webhook.image.pullPolicyWebhook image pull policyIfNotPresent
webhook.image.pullSecretsWebhook 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcert-manager is pinned at v0.1.20 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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