-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdeployment.yml
64 lines (64 loc) · 1.33 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: gringobot-pv-claim-csi
namespace: default
labels:
app: gringobot
spec:
storageClassName: standard-rwo
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gringobot
namespace: default
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: gringobot
version: v1
template:
metadata:
annotations:
sidecar.istio.io/inject: 'false'
labels:
app: gringobot
version: v1
spec:
volumes:
- name: gringobot-volume
persistentVolumeClaim:
claimName: gringobot-pv-claim-csi
containers:
- image: armand1m/gringobot:main
imagePullPolicy: IfNotPresent
name: gringobot
env:
- name: BOT_TOKEN
valueFrom:
secretKeyRef:
name: gringobot-secrets
key: bot_token
- name: DATA_PATH
value: /app/data/
- name: NODE_ENV
value: production
resources:
limits:
cpu: 128m
memory: 156Mi
requests:
cpu: 100m
memory: 128Mi
volumeMounts:
- mountPath: /app/data
name: gringobot-volume