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
| Parameter | Description | Default |
|---|---|---|
groupName | Unique group name for the webhook API group | acme-myra.kvalitetsit.dk |
replicaCount | Number of replicas | 1 |
image.repository | Image repository | kvalitetsit/myra-cert-manager-webhook |
image.tag | Image tag | latest |
image.pullPolicy | Image pull policy | IfNotPresent |
myra.apiKeySecretName | Name of the secret containing the Myra API credentials | myra-api-credentials |
myra.apiUrl | Myra API base URL | https://apiv2.myracloud.com |
certManager.namespace | Namespace where cert-manager is installed | cert-manager |
certManager.serviceAccountName | Service account name of cert-manager | cert-manager |
resources.limits.memory | Memory limit | 100Mi |
resources.requests.cpu | CPU request | 5m |
resources.requests.memory | Memory request | 30Mi |
podSecurityContext | Pod-level security context | runAsNonRoot: true, runAsUser/Group/fsGroup: 65532 |
securityContext | Container-level security context | allowPrivilegeEscalation: false, readOnlyRootFilesystem: true, capabilities ALL dropped |
networkPolicy.enabled | Enable NetworkPolicy | true |
nodeSelector | Node selector | {} |
tolerations | Tolerations | [] |
affinity | Affinity 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmyra-cert-manager-webhook is pinned at v1.2.2 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