medcom-sdn-dns-cert-manager-webhook

by KvalitetsIT

Helm chartv0.0.4App 0.0.4Verified publisher

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

About this chart

medcom-sdn-dns-cert-manager-webhook

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

Prerequisites

  • Kubernetes 1.21+
  • Helm 3.0+
  • cert-manager v1.19+ installed in the cluster
  • Network access from the webhook to the SDN DNS API

Installation

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

helm install medcom-sdn-dns-cert-manager-webhook kvalitetsit/medcom-sdn-dns-cert-manager-webhook \
  --namespace cert-manager \
  --set sdn.apiUrl=<sdn-dns-api-url>

sdn.apiUrl is required and is passed to the webhook as SDN_API_URL.

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-sdn.dsdn.dk
            solverName: acme-sdn.dsdn.dk

Values

ParameterDescriptionDefault
groupNameUnique group name for the webhook API groupacme-sdn.dsdn.dk
replicaCountNumber of replicas1
image.repositoryImage repositorykvalitetsit/medcom-sdn-dns-cert-manager-webhook
image.tagImage taglatest
image.pullPolicyImage pull policyIfNotPresent
sdn.apiUrlSDN DNS API base URL (required)""
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
networkPolicy.egressPortsAllowed egress ports, must include the SDN DNS API port443, 6443 (TCP), 53 (TCP/UDP)
nodeSelectorNode selector{}
tolerationsTolerations[]
affinityAffinity rules{}

Deploy medcom-sdn-dns-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 medcom-sdn-dns-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 chartmedcom-sdn-dns-cert-manager-webhook is pinned at v0.0.4 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