-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-dns-updater.yaml
50 lines (50 loc) · 1.45 KB
/
azure-dns-updater.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
apiVersion: batch/v1
kind: CronJob
metadata:
name: azure-dns-updater
spec:
schedule: "0 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: azure-dns-updater
image: ghcr.io/qwerty-iot/azure-dns-updater/azure-dns-updater:latest
env:
- name: AZURE_SUBSCRIPTION_ID
valueFrom:
secretKeyRef:
name: azure-creds
key: subscription_id
- name: AZURE_TENANT_ID
valueFrom:
secretKeyRef:
name: azure-creds
key: tenant_id
- name: AZURE_CLIENT_ID
valueFrom:
secretKeyRef:
name: azure-creds
key: client_id
- name: AZURE_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: azure-creds
key: client_secret
- name: DNS_ZONE
valueFrom:
secretKeyRef:
name: azure-creds
key: dns_zone
- name: DNS_RECORD
valueFrom:
secretKeyRef:
name: azure-creds
key: dns_record
- name: DNS_RESOURCE_GROUP
valueFrom:
secretKeyRef:
name: azure-creds
key: dns_resource_group
restartPolicy: Never