Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use official external-dns helm chart in readme #42

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 27 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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='<ANEXIA_API_URL>' \
kubectl create secret generic anexia-credentials \
--from-literal=token='<ANEXIA_API_TOKEN>'

# create the helm values file
cat <<EOF > 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: <ANEXIA_API_URL>
- name: ANEXIA_API_TOKEN
valueFrom:
secretKeyRef:
name: anexia-configuration
name: anexia-credentials
key: token
- name: SERVER_HOST
value: "0.0.0.0"
Expand All @@ -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
```
Loading