-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcronjob.yaml
35 lines (35 loc) · 1.03 KB
/
cronjob.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
---
apiVersion: batch/v1
kind: CronJob
metadata:
namespace: kube-system
name: dyndns-updater
spec:
schedule: "0 * * * *"
failedJobsHistoryLimit: 1
successfulJobsHistoryLimit: 3
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
restartPolicy: Never
tolerations:
- key: "arm"
operator: "Exists"
containers:
- name: dyndns-updater
image: ghcr.io/wrmilling/route53-ddns:v2.0.0@sha256:3bb2d84d543094c60b3d5d3e23bd97d4057692285d82ce2b0884a95aa90f1062
imagePullPolicy: IfNotPresent
env:
- name: AWS_ACCESS_KEY_ID
value: ${SECRET_DYNDNS_AWS_ACCESS_KEY_ID}
- name: AWS_SECRET_ACCESS_KEY
value: ${SECRET_DYNDNS_AWS_SECRET_ACCESS_KEY}
- name: RECORDSET
value: ipv4.${SECRET_DOMAIN}
- name: ZONEID
value: ${SECRET_DYNDNS_ZONEID}
command:
- "/bin/bash"
- "/usr/local/bin/update-route53"