diff --git a/README.md b/README.md index 22b06f6..e6f7d7a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![License](https://img.shields.io/github/license/probstenhias/external-dns-anexia-webhook?style=for-the-badge)](LICENSE.md) [![Build](https://img.shields.io/github/actions/workflow/status/probstenhias/external-dns-anexia-webhook/pull_request.yml?style=for-the-badge)](https://github.com/probstenhias/external-dns-anexia-webhook/actions/workflows/pull_request.yml) [![GoReport](https://goreportcard.com/badge/github.com/probstenhias/external-dns-anexia-webhook?style=for-the-badge)](https://goreportcard.com/report/github.com/probstenhias/external-dns-anexia-webhook) -[![Coverage](https://img.shields.io/coverallsCoverage/github/ProbstenHias/external-dns-anexia-webhook?style=for-the-badge)](https://coveralls.io/github/ProbstenHias/external-dns-anexia-webhook?branch=main)) +[![Coverage](https://img.shields.io/coverallsCoverage/github/ProbstenHias/external-dns-anexia-webhook?style=for-the-badge)](https://coveralls.io/github/ProbstenHias/external-dns-anexia-webhook?branch=main) The Anexia Webhook Provider for [ExternalDNS](https://github.com/kubernetes-sigs/external-dns) allows you to use Anexia's DNS API to manage DNS records for your domains. @@ -20,50 +20,45 @@ The Anexia Webhook Provider is provided as an OCI image in [ghcr.io/probstenhia The following is an example deployment for the Anexia Webhook Provider: ```bash -helm repo add bitnami https://charts.bitnami.com/bitnami +helm repo add external-dns https://kubernetes-sigs.github.io/external-dns/ # create the anexia configuration -kubectl create secret generic anexia-configuration \ - --from-literal=url='' \ +kubectl create secret generic anexia-credentials \ --from-literal=token='' # create the helm values file cat < external-dns-anexia-values.yaml -provider: webhook + +# -- ExternalDNS Log level. +logLevel: debug # reduce in production + +# -- if true, _ExternalDNS_ will run in a namespaced scope (Role and Rolebinding will be namespaced too). +namespaced: false + +# -- _Kubernetes_ resources to monitor for DNS entries. +sources: + - ingress + - service + - crd extraArgs: - webhook-provider-url: http://localhost:8888 - -sidecars: - - name: anexia-webhook - image: ghcr.io/probstenhias/external-dns-anexia-webhook:$RELEASE_VERSION - ports: - - containerPort: 8888 - name: http - livenessProbe: - httpGet: - path: /healthz - port: http - initialDelaySeconds: 10 - timeoutSeconds: 5 - readinessProbe: - httpGet: - path: /healthz - port: http - initialDelaySeconds: 10 - timeoutSeconds: 5 + ## must override the default value with port 8888 with port 8080 because this is hard-coded in the helm chart + - --webhook-provider-url=http://localhost:8080 + +provider: + name: webhook + webhook: + image: ghcr.io/probstenhias/external-dns-anexia-webhook + tag: v0.1.6 env: - name: LOG_LEVEL - value: debug + value: debug # reduce in production - name: ANEXIA_API_URL - valueFrom: - secretKeyRef: - name: anexia-configuration - key: url + value: - name: ANEXIA_API_TOKEN valueFrom: secretKeyRef: - name: anexia-configuration + name: anexia-credentials key: token - name: SERVER_HOST value: "0.0.0.0" @@ -72,5 +67,5 @@ sidecars: EOF # install external-dns with helm -helm install external-dns-anexia bitnami/external-dns -f external-dns-anexia-values.yaml +helm upgrade -i external-dns-anexia external-dns/external-dns -f external-dns-anexia-values.yaml ```