-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
40 lines (40 loc) · 1.03 KB
/
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
37
38
39
40
apiVersion: apps/v1
kind: Deployment
metadata:
name: external-dns
namespace: {{ .Release.Namespace }}
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.12.2
args:
- --source=ingress # service is also possible
- --provider=godaddy
- --godaddy-api-key=$(GODADDY_API_KEY)
- --godaddy-api-secret=$(GODADDY_SECRET_KEY)
- --registry=txt
- --txt-owner-id={{ .Values.txtOwnerID }}
env:
- name: GODADDY_API_KEY
valueFrom:
secretKeyRef:
name: dns-creds
key: GODADDY_API_KEY
optional: false
- name: GODADDY_SECRET_KEY
valueFrom:
secretKeyRef:
name: dns-creds
key: GODADDY_SECRET_KEY
optional: false