-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s.yml
45 lines (45 loc) · 1.12 KB
/
k8s.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
apiVersion: v1
kind: Namespace
metadata:
name: ${NAMESPACE}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ${NAME}-drandcloudflarecom-server
labels:
app: ${NAME}
spec:
replicas: 1
selector:
matchLabels:
app: ${NAME}-drandcloudflarecom-server
template:
metadata:
labels:
app: ${NAME}-drandcloudflarecom-server
spec:
containers:
- name: ${NAME}-drandcloudflarecom-server
image: matthewgall/drandarchive.com:edge
args: ["python3", "/app/app.py", "-sv", "--cf"]
env:
- name: DRAND_SERVER
value: drand.cloudflare.com
- name: DELAY
value: "10"
- name: CLOUDFLARE_ACCOUNT
valueFrom:
secretKeyRef:
name: ${NAME}-secrets
key: cf-account
- name: CLOUDFLARE_TOKEN
valueFrom:
secretKeyRef:
name: ${NAME}-secrets
key: cf-token
- name: CLOUDFLARE_NAMESPACE
valueFrom:
secretKeyRef:
name: ${NAME}-secrets
key: cf-namespace