-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment.yaml
68 lines (62 loc) · 1.29 KB
/
deployment.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
apiVersion: apps/v1
kind: Deployment
metadata:
name: sand-display
labels:
name: sand-display
spec:
selector:
matchLabels:
app: sand-display
replicas: 1
template:
metadata:
labels:
app: sand-display
spec:
containers:
- name: sand-display
image: sandci/sand-display:kube
resources:
limits:
memory: "128Mi"
cpu: "500m"
imagePullPolicy: Always
ports:
- containerPort: 5000
env:
- name: REDIS_URL
value: redis://localhost
- name: ES_USER
valueFrom:
secretKeyRef:
name: mwt2-es-credentials
key: es_username.txt
- name: ES_PASS
valueFrom:
secretKeyRef:
name: mwt2-es-credentials
key: es_password.txt
- name: redis
image: redis
ports:
- containerPort: 6379
name: redis
protocol: TCP
resources:
limits:
memory: "128Mi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: sand-display-service
spec:
selector:
app: sand-display
ports:
- protocol: "TCP"
port: 8000
targetPort: 5000
type: LoadBalancer