-
Notifications
You must be signed in to change notification settings - Fork 0
/
dns.yaml
64 lines (63 loc) · 1.75 KB
/
dns.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
apiVersion: v1
kind: ServiceAccount
metadata:
name: external-dns
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: external-dns
rules:
- apiGroups: [""]
resources: ["services","endpoints","pods"]
verbs: ["get","watch","list"]
- apiGroups: ["extensions","networking.k8s.io"]
resources: ["ingresses"]
verbs: ["get","watch","list"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: external-dns-viewer
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: external-dns
subjects:
- kind: ServiceAccount
name: external-dns
namespace: default
# ---
# apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: external-dns
# spec:
# strategy:
# type: Recreate
# selector:
# matchLabels:
# app: external-dns
# template:
# metadata:
# labels:
# app: external-dns
# spec:
# serviceAccountName: external-dns
# containers:
# - name: external-dns
# image: k8s.gcr.io/external-dns/external-dns:v0.7.6
# args:
# - --source=service # ingress is also possible
# - --domain-filter=slzr.cloud # (optional) limit to only example.com domains; change to match the zone created above.
# #- --zone-id-filter=023e105f4ecef8ad9ca31a8372d0c353 # (optional) limit to a specific zone.
# - --provider=cloudflare
# #- --cloudflare-proxied # (optional) enable the proxy feature of Cloudflare (DDOS protection, CDN...)
# env:
# - name: CF_API_TOKEN
# value: ""
# - name: CF_API_EMAIL
# value: "[email protected]"