-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s_ip_updater.yaml
33 lines (33 loc) · 976 Bytes
/
k8s_ip_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
# example: https://medium.com/jobteaser-dev-team/kubernetes-cronjob-101-56f0a8ea7ca2
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: ip-updater
annotations:
alpha.image.policy.openshift.io/resolve-names: "*"
namespace: home
spec:
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 1
schedule: "*/5 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: ip-updater
image: nadilas/godaddy-oc-updater
env:
- name: API_KEY
value: "<api_key>"
- name: API_SECRET
value: "<api_secret>"
- name: API_BASE
value: "https://api.godaddy.com/"
- name: API_DOMAIN
value: "<domain.entry>"
- name: API_NEW_TTL
value: "1800"
command:
- "/bin/ip-updater"
restartPolicy: OnFailure