forked from MathieuLamiot/TechTeamBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-deployment.yml
53 lines (52 loc) · 1.09 KB
/
app-deployment.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tbtt-deployment
labels:
app: tbtt
spec:
replicas: 3
selector:
matchLabels:
app: tbtt
template:
metadata:
labels:
app: tbtt
spec:
containers:
- name: tbtt
image: tbtt-app
imagePullPolicy: Never
ports:
- containerPort: 3000
env:
- name: TBTT_GITHUB_TOKEN
valueFrom:
secretKeyRef:
name: tbtt-secrets
key: TBTT_GITHUB_TOKEN
- name: TBTT_SLACK_BOT_USER_TOKEN
valueFrom:
secretKeyRef:
name: tbtt-secrets
key: TBTT_SLACK_BOT_USER_TOKEN
- name: TBTT_SLACK_SIGNING_SECRET
valueFrom:
secretKeyRef:
name: tbtt-secrets
key: TBTT_SLACK_SIGNING_SECRET
---
apiVersion: v1
kind: Service
metadata:
name: tbtt-service
spec:
ports:
- port: 3000
protocol: TCP
targetPort: 3000
selector:
app: tbtt
type: LoadBalancer