cert-manager-ca-issuer

by sandipb

Helm chartv0.1.6App 1.6.0Apache-2.0Verified publisher

A Helm chart for adding a custom CA issuer for cert-manager

About this chart

Helm chart - cert-manager-ca-issuer

A Chart to use your own Certificate Authority for signing TLS certificates using cert-manager.

Values

PropertyDefaultDescription
issuerNamespacecert-managerThe namespace used for deploying the secret contain the CA certificate and key. Also, if the issuer is of the namespaced kind Issuer, the Issuer instance itself is also deployed here.
issuerKindClusterIssuerThe kind of the issuer. Could be ClusterIssuer or the namespaced Issuer
issuerNameca-issuerThe name of the issuer which needs to be specified in the cert-manager annotation described below
issuerSecretNamek8s-local-ca-tlsThe name of the secret containing the TLS secrets
issuerTLSSecretsnoneNo defaults. Required. Should be an object with the keys tls.crt and tls.key

Providing the required TLS secret

You can generate the required TLS secrets entry from your existing certificates by running this command and copying the entries.

$ kubectl create secret tls k8s-local-ca-tls \
          --namespace cert-manager \
          --cert k8s_local_ca.chained.pem --key k8s_local_ca-key.pem \
          -o yaml --dry-run=client | yq e .data -
...
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...
tls.key: LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JS...

Using the issuer

Once the chart is installed, you can get automatically signed certificates for your ingress if they use the following annotation:

  annotations:
    kubernetes.io/ingress.class: "nginx"
    cert-manager.io/cluster-issuer: "ca-issuer"

Substitute your ingress class name as per your setup, and use the value of the config issuerName for the cluster-issuer annotation.

Deploy cert-manager-ca-issuer 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-ca-issuer 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-ca-issuer is pinned at v0.1.6 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