cert-manager

by joaquinito2051

Helm chartv0.4.1App v0.4.2

A Helm chart for cert-manager

About this chart

cert-manager

cert-manager is a Kubernetes addon to automate the management and issuance of TLS certificates from various issuing sources.

It will ensure certificates are valid and up to date periodically, and attempt to renew certificates at an appropriate time before expiry.

Prerequisites

  • Kubernetes 1.7+

Installing the Chart

Full installation instructions, including details on how to configure extra functionality in cert-manager can be found in the getting started docs.

To install the chart with the release name my-release:

$ helm install --name my-release stable/cert-manager

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:

https://cert-manager.readthedocs.io/en/latest/reference/issuers.html

For information on how to configure cert-manager to automatically provision Certificates for Ingress resources, take a look at the ingress-shim documentation:

https://cert-manager.readthedocs.io/en/latest/reference/ingress-shim.html

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the cert-manager chart and their default values.

ParameterDescriptionDefault
image.repositoryImage repositoryquay.io/jetstack/cert-manager-controller
image.tagImage tagv0.4.1
image.pullPolicyImage pull policyIfNotPresent
replicaCountNumber of cert-manager replicas1
createCustomResourceCreate CRD/TPR with this releasetrue
clusterResourceNamespaceOverride the namespace used to store DNS provider credentials etc. for ClusterIssuer resourcesSame namespace as cert-manager pod
leaderElection.NamespaceOverride the namespace used to store the ConfigMap for leader electionSame namespace as cert-manager pod
certificateResourceShortNamesCustom aliases for Certificate CRD["cert", "certs"]
extraArgsOptional flags for cert-manager[]
extraEnvOptional environment variables for cert-manager[]
rbac.createIf true, create and use RBAC resourcestrue
serviceAccount.createIf true, create a new service accounttrue
serviceAccount.nameService account to be used. If not set and serviceAccount.create is true, a name is generated using the fullname template
resourcesCPU/memory resource requests/limitsrequests: {cpu: 10m, memory: 32Mi}
nodeSelectorNode labels for pod assignment{}
affinityNode affinity for pod assignment{}
tolerationsNode tolerations for pod assignment[]
ingressShim.defaultIssuerNameOptional default issuer to use for ingress resources
ingressShim.defaultIssuerKindOptional default issuer kind to use for ingress resources
ingressShim.defaultACMEChallengeTypeOptional default challenge type to use for ingresses using ACME issuers
ingressShim.defaultACMEDNS01ChallengeProviderOptional default DNS01 challenge provider to use for ingresses using ACME issuers with DNS01
podAnnotationsAnnotations to add to the cert-manager pod{}
podDnsPolicyOptional cert-manager pod DNS policy
podDnsConfigOptional cert-manager pod DNS configurations
podLabelsLabels to add to the cert-manager pod{}
http_proxyValue of the HTTP_PROXY environment variable in the cert-manager pod
https_proxyValue of the HTTPS_PROXY environment variable in the cert-manager pod
no_proxyValue of the NO_PROXY environment variable in the cert-manager pod

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml .

Tip: You can use the default values.yaml

Contributing

This chart is maintained at github.com/jetstack/cert-manager.

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.4.1 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