From 83b3ed110abe1cf44952651ea942cd1eed931e03 Mon Sep 17 00:00:00 2001 From: Omer Date: Wed, 24 Apr 2024 20:10:49 +0300 Subject: [PATCH] Added helm docks to akami-edgedns --- docs/tutorials/akamai-edgedns.md | 43 +++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/akamai-edgedns.md b/docs/tutorials/akamai-edgedns.md index 7ec153a6fe..2bf6e18c0e 100644 --- a/docs/tutorials/akamai-edgedns.md +++ b/docs/tutorials/akamai-edgedns.md @@ -34,7 +34,48 @@ In addition to specifying auth credentials individually, an Akamai Edgegrid .edg An operational External-DNS deployment consists of an External-DNS container and service. The following sections demonstrate the ConfigMap objects that would make up an example functional external DNS kubernetes configuration utilizing NGINX as the service. -Connect your `kubectl` client to the External-DNS cluster, and then apply one of the following manifest files: +Connect your `kubectl` client to the External-DNS cluster. + +Begin by creating a Kubernetes secret to securely store your Akamai Edge DNS Access Tokens. This key will enable ExternalDNS to authenticate with Akamai Edge DNS: +```shell +kubectl create secret generic external-dns --from-literal=EXTERNAL_DNS_AKAMAI_SERVICECONSUMERDOMAIN=YOUR_SERVICECONSUMERDOMAIN --from-literal=EXTERNAL_DNS_AKAMAI_CLIENT_TOKEN=YOUR_CLIENT_TOKEN --from-literal=EXTERNAL_DNS_AKAMAI_CLIENT_SECRET=YOUR_CLIENT_SECRET --from-literal=EXTERNAL_DNS_AKAMAI_ACCESS_TOKEN=YOUR_ACCESS_TOKEN +``` +Ensure to replace YOUR_SERVICECONSUMERDOMAIN, EXTERNAL_DNS_AKAMAI_CLIENT_TOKEN, YOUR_CLIENT_SECRET and YOUR_ACCESS_TOKEN with your actual Akamai Edge DNS API keys. + +Then apply one of the following manifests file to deploy ExternalDNS. + +### Using Helm + +Create a values.yaml file to configure ExternalDNS to use Akamai Edge DNS as the DNS provider. This file should include the necessary environment variables: +```shell +provider: + name: akamai +env: + - name: EXTERNAL_DNS_AKAMAI_SERVICECONSUMERDOMAIN + valueFrom: + secretKeyRef: + name: external-dns + key: EXTERNAL_DNS_AKAMAI_SERVICECONSUMERDOMAIN + - name: EXTERNAL_DNS_AKAMAI_CLIENT_TOKEN + valueFrom: + secretKeyRef: + name: external-dns + key: EXTERNAL_DNS_AKAMAI_CLIENT_TOKEN + - name: EXTERNAL_DNS_AKAMAI_CLIENT_SECRET + valueFrom: + secretKeyRef: + name: external-dns + key: EXTERNAL_DNS_AKAMAI_CLIENT_SECRET + - name: EXTERNAL_DNS_AKAMAI_ACCESS_TOKEN + valueFrom: + secretKeyRef: + name: external-dns + key: EXTERNAL_DNS_AKAMAI_ACCESS_TOKEN +``` +Finally, install the ExternalDNS chart with Helm using the configuration specified in your values.yaml file: +```shell +helm upgrade --install external-dns external-dns/external-dns --version 1.14.4 --values values.yaml +``` ### Manifest (for clusters without RBAC enabled)