-
Notifications
You must be signed in to change notification settings - Fork 0
/
kube.yml
47 lines (47 loc) · 1.08 KB
/
kube.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
apiVersion: v1
kind: Secret
metadata:
name: {{ .app }}-secrets
data:
busdata_password: {{ .busdata_password_base64 }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .app }}
labels:
app: {{ .app }}
spec:
replicas: 1
selector:
matchLabels:
app: {{ .app }}
template:
metadata:
labels:
app: {{ .app }}
spec:
containers:
- name: busnj-writer-njtransit
image: {{ .image }}
resources:
limits:
cpu: 20m
memory: 50Mi
requests:
cpu: 10m
memory: 20Mi
env:
- name: REDIS_ADDR
value: {{ .redis_addr }}
- name: BUSDATA_USERNAME
value: {{ .busdata_username }}
- name: BUSDATA_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .app }}-secrets
key: busdata_password
- name: BUSDATA_UPDATE_INTERVAL
value: {{ .busdata_update_interval }}
imagePullSecrets:
- name: regcred