Skip to content

Commit

Permalink
Revert "docs: update README.md with Anexia Webhook Provider details (#5
Browse files Browse the repository at this point in the history
…)"

This reverts commit 08a21e2.
  • Loading branch information
ProbstenHias authored May 7, 2024
1 parent 08a21e2 commit c8b2df1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 77 deletions.
77 changes: 1 addition & 76 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,76 +1 @@
# ExternalDNS - Anexia Webhook Provider

[![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))

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.

The provider is heavily inspired by the [ExternalDNS - IONOS Webhook](https://github.com/ionos-cloud/external-dns-ionos-webhook) and some inspiration taken from the [External DNS - Adguard Home Provider](https://github.com/muhlba91/external-dns-provider-adguard/tree/main).

## Configuration

See [cmd/webhook/init/configuration/configuration.go](cmd/webhook/init/configuration/configuration.go) for all available configuration options for the webhook sidecar, and [internal/anexia/configuration.go](internal/anexia/configuration.go) for all available configuration options for the Anexia provider.

## Kubernetes Deployment

The Anexia Webhook Provider is provided as an OCI image in [ghcr.io/probstenhias/external-dns-anexia-webhook](https://ghcr.io/probstenhias/external-dns-anexia-webhook).

The following is an example deployment for the Anexia Webhook Provider:

```bash
helm repo add bitnami https://charts.bitnami.com/bitnami

# create the anexia configuration
kubectl create secret generic anexia-configuration \
--from-literal=url='<ANEXIA_API_URL>' \
--from-literal=token='<ANEXIA_API_TOKEN>'

# create the helm values file
cat <<EOF > external-dns-anexia-values.yaml
provider: webhook
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
env:
- name: LOG_LEVEL
value: debug
- name: ANEXIA_API_URL
valueFrom:
secretKeyRef:
name: anexia-configuration
key: url
- name: ANEXIA_API_TOKEN
valueFrom:
secretKeyRef:
name: aneixa-configuration
key: token
- name: SERVER_HOST
value: "0.0.0.0"
- name: DRY_RUN
value: "false"
EOF

# install external-dns with helm
helm install external-dns-anexia bitnami/external-dns -f external-dns-anexia-values.yaml
```
# external-dns-anexia-webhook
2 changes: 1 addition & 1 deletion cmd/webhook/init/dnsprovider/dnsprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"regexp"
"strings"

"github.com/caarlos0/env/v11"
"github.com/probstenhias/external-dns-anexia-webhook/cmd/webhook/init/configuration"
"github.com/probstenhias/external-dns-anexia-webhook/internal/anexia"
"github.com/caarlos0/env/v11"
"sigs.k8s.io/external-dns/endpoint"
"sigs.k8s.io/external-dns/provider"

Expand Down

0 comments on commit c8b2df1

Please sign in to comment.