cert-manager-selfservice

by Mario-F

Helm chartv2.2.1App v2.2.4Verified publisher

Service to utilize cert-manager outside kubernetes clusters

About this chart

Cert Manager Selfservice Helm Chart

The helm chart to deploy cert-manager-selfservice https://github.com/Mario-F/cert-manager-selfservice

Requirements

The chart application requires a working installation of cert-manager

Usage

Simple usage of the helm chart would be like:

helm repo add mariof-charts https://mario-f.github.io/helm-charts/
helm install cert-manager-selfservice \
  --set selfservice.issuer.name="my-clusterissuer" \
  mariof-charts/cert-manager-selfservice

Parameters

Common parameters

NameDescriptionValue
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""

Cert-Manager-Selfservice Configuration parameters

NameDescriptionValue
selfservice.managerIdUniq owner id for certificate ressources{{ .Release.Name }}
selfservice.issuer.kindThe cert-manager issuer type to useClusterIssuer
selfservice.issuer.nameThe name of cert-manager issuer to usedefault-issuer
selfservice.debugWill set debug loglevel in selfservicefalse
selfservice.cleanup.enabledControl if cleanup should enabledtrue
selfservice.cleanup.hoursTime in hours after which unused certificates are deleted72
selfservice.auth.enabledEnable authenticationfalse
selfservice.auth.usernameAuthentication usernameadmin
selfservice.auth.passwordAuthentication passwordadmin

Cert-Manager-Selfservice Deployment parameters

NameDescriptionValue
image.repositorycert-manager-selfservice image repositoryghcr.io/mario-f/cert-manager-selfservice
image.tagcert-manager-selfservice image tag (default to AppVersion)""
image.pullPolicycert-manager-selfservice image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
nodeSelectorNode labels for pod assignment.{}
tolerationsTolerations for pod assignment.[]
resources.limitsThe resources limits for the cert-manager-selfservice container{}
resources.requestsThe requested resources for the cert-manager-selfservice container{}

Traffic exposure parameters

NameDescriptionValue
service.typeService typeClusterIP
service.portService HTTP port5080

Metrics parameters

NameDescriptionValue
metrics.enabledSetup metrics exportfalse
metrics.portContainer Metrics Port scraped by Prometheus Exporter6081
metrics.serviceMonitor.enabledCreates a Prometheus Operator ServiceMonitor (also requires metrics.enabled to be true)false
metrics.serviceMonitor.namespaceNamespace in which Prometheus is running""
metrics.serviceMonitor.intervalInterval at which metrics should be scraped.""
metrics.serviceMonitor.scrapeTimeoutTimeout after which the scrape is ended""

Additional features parameters

NameDescriptionValue
templatesSee templates section for explanation[]

Templates

This chart provides a template render mechanism for rendering additional ressources bound to this release.

It works like bedag/raw helm chart but not on subchart level, see this example (values.yaml):

templates:
  - enabled: true
    content: |
      apiVersion: v1
      kind: ConfigMap
      metadata:
        name: {{ include "parent.fullname" . }}-additional
        labels:
          {{- include "parent.labels" . | nindent 4 }}
      data:
        example.data: |
          nothing special here
          out

Deploy cert-manager-selfservice 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-selfservice 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-selfservice is pinned at v2.2.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