Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kashalls/external-dns-unifi-webhook
External-DNS Webhook to manage UniFi DNS Records
https://github.com/kashalls/external-dns-unifi-webhook
dns external-dns external-dns-webhook kubernetes ui unifi unifi-network webhook-server
Last synced: 3 months ago
JSON representation
External-DNS Webhook to manage UniFi DNS Records
- Host: GitHub
- URL: https://github.com/kashalls/external-dns-unifi-webhook
- Owner: kashalls
- License: apache-2.0
- Created: 2024-05-23T19:04:38.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-13T20:41:07.000Z (4 months ago)
- Last Synced: 2024-07-13T21:45:23.186Z (4 months ago)
- Topics: dns, external-dns, external-dns-webhook, kubernetes, ui, unifi, unifi-network, webhook-server
- Language: Go
- Homepage:
- Size: 127 KB
- Stars: 65
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# ExternalDNS Webhook Provider for UniFi
[![GitHub Release](https://img.shields.io/github/v/release/kashalls/external-dns-unifi-webhook?style=for-the-badge)](https://github.com/kashalls/external-dns-unifi-webhook/releases)
[![Discord](https://img.shields.io/discord/673534664354430999?style=for-the-badge&label&logo=discord&logoColor=white&color=blue)](https://discord.gg/home-operations)> [!WARNING]
> This software is experimental and **NOT FIT FOR PRODUCTION USE!**[ExternalDNS](https://github.com/kubernetes-sigs/external-dns) is a Kubernetes add-on for automatically managing DNS records for Kubernetes ingresses and services by using different DNS providers. This webhook provider allows you to automate DNS records from your Kubernetes clusters into your UniFi Network controller.
## 🎯 Requirements
- ExternalDNS >= v0.14.0
- UniFi OS >= 3.x
- UniFi Network >= 8.2.93## ⛵ Deployment
1. Create a local user with a password in your UniFi OS, this user only needs read/write access to the UniFi Network appliance.
2. Add the ExternalDNS Helm repository to your cluster.
```sh
helm repo add external-dns https://kubernetes-sigs.github.io/external-dns/
```3. Create a Kubernetes secret called `external-dns-unifi-secret` that holds `username` and `password` with their respected values from step 1.
4. Create the helm values file, for example `external-dns-unifi-values.yaml`:
```yaml
fullnameOverride: external-dns-unifi
logLevel: debug
provider:
name: webhook
webhook:
image:
repository: ghcr.io/kashalls/external-dns-unifi-webhook
tag: main # replace with a versioned release tag
env:
- name: UNIFI_HOST
value: https://192.168.1.1 # replace with the address to your UniFi router
- name: UNIFI_USER
valueFrom:
secretKeyRef:
name: external-dns-unifi-secret
key: username
- name: UNIFI_PASS
valueFrom:
secretKeyRef:
name: external-dns-unifi-secret
key: password
- name: LOG_LEVEL
value: debug
livenessProbe:
httpGet:
path: /healthz
port: http-wh-metrics
initialDelaySeconds: 10
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /readyz
port: http-wh-metrics
initialDelaySeconds: 10
timeoutSeconds: 5
extraArgs:
- --ignore-ingress-tls-spec
policy: sync
sources: ["ingress", "service"]
txtOwnerId: default
txtPrefix: k8s.
domainFilters: ["example.com"] # replace with your domain
```5. Install the Helm chart
```sh
helm install external-dns-unifi external-dns/external-dns -f external-dns-unifi-values.yaml --version 1.14.3 -n external-dns
```## ⭐ Stargazers
[![Star History Chart](https://api.star-history.com/svg?repos=kashalls/external-dns-unifi-webhook&type=Date)](https://star-history.com/#kashalls/external-dns-unifi-webhook&Date)
---
## 🤝 Gratitude and Thanks
Thanks to all the people who donate their time to the [Home Operations](https://discord.gg/home-operations) Discord community.