cert-manager-extensions
by emberstack
A Helm chart for cert-manager extensions
About this chart
cert-manager Helm Extensions
This chart provides templates for cert-manager CRDs. It can be used as the base for dynamic resources.
Requirements: cert-manager installed in the cluster.
Templates target the cert-manager.io/v1 API as shipped with cert-manager v1.21.1.
| Kind | Values key | Shape |
|---|---|---|
Issuer | issuers | list — each entry needs its own name |
ClusterIssuer | clusterIssuers | list — each entry needs its own name |
Certificate | certificates | map keyed by name |
Every entry is opt-in via enabled: true.
CertificateRequest, Order and Challenge are deliberately not templated — cert-manager's controllers
create and own those; they are not resources you author.
Note the shape difference:
issuers/clusterIssuersare lists (sonameis required on each entry), whilecertificatesis a map keyed by name (the key is the name — a per-itemnameis ignored there).
Installation
Using OCI registry (recommended)
helm install cert-manager-extensions oci://ghcr.io/emberstack/helm-charts/cert-manager-extensions
Using Helm repository
helm repo add emberstack https://emberstack.github.io/helm-charts
helm repo update
helm upgrade --install cert-manager-extensions emberstack/cert-manager-extensions
Parameters
| Parameter | Description | Default |
|---|---|---|
nameOverride | Override chart name | "" |
fullnameOverride | Override fully qualified app name | "" |
namespaceOverride | Override namespace | "" |
commonLabels | Labels added to all resources | {} |
commonAnnotations | Annotations added to all resources | {} |
issuers | List of Issuers | [] |
clusterIssuers | List of ClusterIssuers | [] |
certificates | Map of Certificates (keyed by name) | {} |
Every field of the cert-manager v1.21.1 IssuerSpec and CertificateSpec is renderable.
See values.yaml for the full annotated reference.
Usage Examples
ACME ClusterIssuer with a DNS-01 solver
clusterIssuers:
- name: letsencrypt
enabled: true
acme:
email: [email protected]
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-key
solvers:
- dns01:
cloudflare:
apiTokenSecretRef:
name: cloudflare-token
key: token
CA and self-signed ClusterIssuers
clusterIssuers:
- name: internal-ca
enabled: true
ca:
secretName: ca-key-pair
- name: selfsigned
enabled: true
selfSigned: {}
Vault Issuer with AWS IAM auth (cert-manager >= 1.21)
issuers:
- name: vault
enabled: true
vault:
server: https://vault.example.com
path: pki/sign/example
auth:
aws:
role: vault-role
region: eu-west-1
serviceAccountRef:
name: cert-manager
Venafi Issuer using Next-Gen Trust Services (cert-manager >= 1.21)
issuers:
- name: venafi-ngts
enabled: true
venafi:
zone: My Zone
ngts:
tsgID: my-tsg-id
credentialsRef:
name: ngts-credentials
Certificate with renewal windows (cert-manager >= 1.21)
certificates:
web:
enabled: true
secretName: web-tls
issuerRef:
name: letsencrypt
kind: ClusterIssuer
dnsNames:
- www.example.com
duration: 2160h
renewBefore: 360h
renewal:
policy: RenewBefore
windows:
- cron: "0 2 * * SAT"
windowDuration: 4h
timezone: UTC
Certificate with a PKCS#12 keystore
certificates:
app:
enabled: true
secretName: app-tls
issuerRef:
name: internal-ca
kind: ClusterIssuer
dnsNames:
- app.svc.cluster.local
privateKey:
algorithm: ECDSA
size: 256
rotationPolicy: Always
keystores:
pkcs12:
create: true
passwordSecretRef:
name: p12-password
key: password
Per-environment DNS name additions
certificates is a map, so value files merge. extraDnsNames is appended to dnsNames,
letting an environment add hostnames without restating the certificate:
certificates:
web:
extraDnsNames:
- staging.example.com
Deploy cert-manager-extensions 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-extensions 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-extensions is pinned at v1.0.22 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