acme-linode
A DNS01 Webhook Resolver for Linode/Akamai DNS Provider when using LKE
About this chart
Linode (Akamai) ACME Webhook Solver
An ACME DNS01 Webhook Solver for the Linode (now Akamai) DNS Manager; used generally with Linode LKE (Linode Kubernetes Engine) and not other Akamai DNS service providers. This solver is specifically for issuing LetsEncrypt certs into your kubernetes cluster with cert-manager.
Installation
$ helm repo add rotational https://helm.rotational.dev
$ helm install acme-linode rotational/acme-linode \
--namespace cert-manager --values values.yaml
A minimal values.yaml file is as follows:
groupName: acme.company.com
certManager:
namespace: cert-manager
serviceAccountName: cert-manager
The groupName avoids naming conflicts on the Kubernetes API, it should be set by the
to a unique domain that you own. This name must match the group name specified in the ClusterIssuer as described below.
NOTE: The solver needs the namespace and service account name of your installation of cert-manager. The above values are the cert-manager defaults, but they should be set to whatever your installation is. Also, it's usually just easiest to install the webhook into the same namespace as cert-manager.
Linode API Tokens
To interact with the Linode DNS Manager, you'll need an API token. See Getting Started with the Linode API for more information.
You can either manually create a secret as follows:
$ kubectl create secret generic linode-credentials \
--namespace=cert-manager \
--from-literal=token="<LINODE TOKEN>"
Or you can specify it in the values (e.g. if you're injecting the token from an environment variable or using kustomize):
groupName: acme.company.com
certManager:
namespace: cert-manager
serviceAccountName: cert-manager
# Specify the linode API token credential to be used by the acme-linode webhook.
secret:
create: true
name: "linode-credentials"
key: "token"
value: "<LINODE TOKEN>"
Create Issuer
Define a cert-manager issuer that uses the webhook solver:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
server: https://acme-staging-v02.api.letsencrypt.org/directory
email: [email protected]
privateKeySecretRef:
name: letsencrypt-staging
solvers:
- dns01:
webhook:
solverName: linode
groupName: acme.company.com
By default, the Linode API token will be obtained from the linode-credentials Secret in the same namespace as the solver defined above.
If you would prefer to use separate Linode API tokens for each namespace (e.g. in a multi-tenant environment or for different Linode accounts) you can specify the credentials as part of the issuer config:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
namespace: tenant
spec:
acme:
server: https://acme-staging-v02.api.letsencrypt.org/directory
email: [email protected]
privateKeySecretRef:
name: letsencrypt-staging
solvers:
- dns01:
webhook:
solverName: linode
groupName: acme.company.com
config:
apiKeySecretRef:
name: linode-credentials
key: token
Deploy acme-linode with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has acme-linode 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 chartacme-linode is pinned at v1.0.4 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