forked from siennathesane/cloudflare-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubernetes.yml
58 lines (58 loc) · 1.26 KB
/
kubernetes.yml
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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cs-deployment
namespace: infrastructure
labels:
app: cloudflare-sync
spec:
replicas: 1
selector:
matchLabels:
app: cloudflare-sync
template:
metadata:
labels:
app: cloudflare-sync
spec:
containers:
- name: syncer
image: cr.r3t.io/library/cloudflare-sync:latest
env:
- name: RECORDS_FILE_NAME
value: /opt/production.json
- name: ZONE_ID
value: ""
- name: API_TOKEN
value: ""
- name: FREQUENCY
value: "30"
volumeMounts:
- mountPath: /opt/production.json
subPath: production.json
name: config
volumes:
- name: config
configMap:
name: cs-config
items:
- key: production.json
path: production.json
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cs-config
namespace: infrastructure
data:
production.json: |
[
{
"type": "A",
"name": "my.domain.com",
"proxied": true,
"ttl": 120,
"priority": 1
}
]