-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample-deployment.yaml
37 lines (36 loc) · 967 Bytes
/
example-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: external-dns
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: external-dns
spec:
selector:
matchLabels:
app: external-dns
template:
metadata:
labels:
app: external-dns
spec:
containers:
# deploy the external-dns controller
- image: registry.k8s.io/external-dns/external-dns:v0.14.2
name: controller
args: ["--source=crd", "--provider=webhook"]
# deploy the routeros provider
- name: provider
image: docker.io/benfiola/external-dns-routeros-provider:latest
args: ["run"]
env:
- name: EXTERNAL_DNS_ROUTEROS_PROVIDER_ROUTEROS_ADDRESS
value: "127.0.0.1:8728"
- name: EXTERNAL_DNS_ROUTEROS_PROVIDER_ROUTEROS_PASSWORD
value: ""
- name: EXTERNAL_DNS_ROUTEROS_PROVIDER_ROUTEROS_USERNAME
value: admin
---