Skip to content

Commit 1ba5151

Browse files
rboRobert Bohne
authored andcommitted
Add image and deployment/
1 parent 8492cd4 commit 1ba5151

7 files changed

Lines changed: 112 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
name: external-dns
6+
rules:
7+
- apiGroups:
8+
- ""
9+
resources:
10+
- services
11+
- endpoints
12+
- pods
13+
- nodes
14+
verbs:
15+
- get
16+
- watch
17+
- list
18+
- apiGroups:
19+
- extensions
20+
- networking.k8s.io
21+
resources:
22+
- ingresses
23+
verbs:
24+
- get
25+
- list
26+
- watch
27+
- apiGroups:
28+
- "route.openshift.io"
29+
resources:
30+
- routes
31+
verbs:
32+
- get
33+
- list
34+
- watch
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRoleBinding
4+
metadata:
5+
name: external-dns-viewer
6+
roleRef:
7+
apiGroup: rbac.authorization.k8s.io
8+
kind: ClusterRole
9+
name: external-dns
10+
subjects:
11+
- kind: ServiceAccount
12+
name: external-dns
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: external-dns
6+
spec:
7+
selector:
8+
matchLabels:
9+
app: external-dns
10+
template:
11+
metadata:
12+
labels:
13+
app: external-dns
14+
spec:
15+
serviceAccountName: external-dns
16+
nodeSelector:
17+
node-role.kubernetes.io/master: ""
18+
tolerations:
19+
- effect: NoSchedule
20+
key: node-role.kubernetes.io/master
21+
operator: Exists
22+
containers:
23+
- name: external-dns
24+
env:
25+
- name: EXTERNAL_DNS_RFC2136_TSIG_SECRET
26+
valueFrom:
27+
secretKeyRef:
28+
name: external-dns-rfc2136-tsig-secret
29+
key: EXTERNAL_DNS_RFC2136_TSIG_SECRET
30+
image: registry.k8s.io/external-dns/external-dns:v0.14.0
31+
args:
32+
- --registry=txt
33+
- --txt-suffix=-%{record_type}-external-dns
34+
- --txt-owner-id=cluster.disco.local
35+
- --provider=rfc2136
36+
- --rfc2136-host=dns01.disco.local
37+
- --rfc2136-port=53
38+
- --rfc2136-zone=disco.local
39+
- --rfc2136-tsig-secret-alg=hmac-sha512
40+
- --rfc2136-tsig-keyname=openshift-external-dns
41+
- --rfc2136-tsig-axfr
42+
- --source=service
43+
- --domain-filter=disco.local
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
namespace: infra-external-dns
5+
6+
resources:
7+
- clusterrole.yaml
8+
- clusterrolebinding.yaml
9+
- deployment.yaml
10+
- namespace.yaml
11+
- serviceaccount.yaml
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
name: external-dns
6+
labels:
7+
name: external-dns
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
name: external-dns
81.5 KB
Loading

0 commit comments

Comments
 (0)