/
deploy-rt.yaml
71 lines (71 loc) · 1.69 KB
/
deploy-rt.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
66
67
68
69
70
71
apiVersion: apps/v1
kind: Deployment
metadata:
name: trillo-rt
namespace: trillo
labels:
app: trillo-rt
spec:
replicas: 2
template:
metadata:
name: trillo-rt
namespace: trillo
labels:
app: trillo-rt
spec:
serviceAccountName: trillo-rt
containers:
- name: trillo-rt
image: trillo/trillo-rt:1.0.0-BUILD-SNAPSHOT_491
imagePullPolicy: IfNotPresent
env:
- name: DATA_SERVICE_URL
value: https://trillo-ds.trillo.svc.cluster.local
- name: REDIS_CREDENTIALS
valueFrom:
secretKeyRef:
name: redis
key: password
ports:
- containerPort: 8020
name: trillo-rt
volumeMounts:
- name: trillo-repo
mountPath: /trillo-repo
- name: trillo-rt-appdata
mountPath: /trillo-rt-appdata
livenessProbe:
initialDelaySeconds: 180
httpGet:
scheme: HTTPS
port: 8020
path: /_healthcheck
restartPolicy: Always
imagePullSecrets:
- name: trillo-dockerhub-secret
volumes:
- name: trillo-repo
persistentVolumeClaim:
claimName: trillo-repo-pvc
- name: trillo-rt-appdata
persistentVolumeClaim:
claimName: trillo-rt-appdata-pvc
selector:
matchLabels:
app: trillo-rt
---
apiVersion: v1
kind: Service
metadata:
name: trillo-rt
namespace: trillo
spec:
selector:
app: trillo-rt
ports:
- name: https
port: 443
targetPort: 8020
protocol: TCP
type: LoadBalancer # Internet facing ELB