myra-cert-manager-webhook

by KvalitetsIT

Helm chartv1.2.2App 1.2.2Verified publisher

Helm chart for the Myra cert-manager ACME DNS01 webhook solver

About this chart

myra-cert-manager-webhook

Helm chart for deploying the Myra cert-manager ACME DNS-01 webhook solver.

Prerequisites

  • Kubernetes 1.21+
  • Helm 3.0+
  • cert-manager v1.19+ installed in the cluster
  • A Myra API key and secret with permissions to create/delete TXT records

Installation

helm repo add kvalitetsit https://raw.githubusercontent.com/KvalitetsIT/helm-repo/master/
helm repo update

helm install myra-cert-manager-webhook kvalitetsit/myra-cert-manager-webhook \
  --namespace cert-manager \
  --set myra.apiKeySecretName=myra-api-credentials

The chart expects a Kubernetes secret with the Myra API credentials:

kubectl create secret generic myra-api-credentials \
  --namespace cert-manager \
  --from-literal=api-key=<your-api-key> \
  --from-literal=api-secret=<your-api-secret>

Usage

After installation, create a ClusterIssuer that uses the webhook as its DNS-01 solver:

apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-prod
spec:
  acme:
    email: [email protected]
    server: https://acme-v02.api.letsencrypt.org/directory
    privateKeySecretRef:
      name: letsencrypt-prod
    solvers:
      - dns01:
          webhook:
            groupName: acme-myra.kvalitetsit.dk
            solverName: acme-myra.kvalitetsit.dk

Values

ParameterDescriptionDefault
groupNameUnique group name for the webhook API groupacme-myra.kvalitetsit.dk
replicaCountNumber of replicas1
image.repositoryImage repositorykvalitetsit/myra-cert-manager-webhook
image.tagImage taglatest
image.pullPolicyImage pull policyIfNotPresent
myra.apiKeySecretNameName of the secret containing the Myra API credentialsmyra-api-credentials
myra.apiUrlMyra API base URLhttps://apiv2.myracloud.com
certManager.namespaceNamespace where cert-manager is installedcert-manager
certManager.serviceAccountNameService account name of cert-managercert-manager
resources.limits.memoryMemory limit100Mi
resources.requests.cpuCPU request5m
resources.requests.memoryMemory request30Mi
podSecurityContextPod-level security contextrunAsNonRoot: true, runAsUser/Group/fsGroup: 65532
securityContextContainer-level security contextallowPrivilegeEscalation: false, readOnlyRootFilesystem: true, capabilities ALL dropped
networkPolicy.enabledEnable NetworkPolicytrue
nodeSelectorNode selector{}
tolerationsTolerations[]
affinityAffinity rules{}

Deploy myra-cert-manager-webhook with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has myra-cert-manager-webhook 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 chartmyra-cert-manager-webhook is pinned at v1.2.2 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