forked from Python3WebSpider/AccountPool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
99 lines (99 loc) · 2.5 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
apiVersion: v1
kind: Namespace
metadata:
creationTimestamp: null
name: accountpool
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: accountpool
namespace: accountpool
spec:
storageClassName: azure-file
accessModes:
- ReadWriteMany
resources:
requests:
storage: 2Gi
---
apiVersion: v1
items:
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml -o deployment.yml
kompose.version: 1.20.0 ()
creationTimestamp: null
labels:
io.kompose.service: accountpool
name: accountpool
namespace: accountpool
spec:
ports:
- name: "6777"
port: 6777
targetPort: 6777
selector:
io.kompose.service: accountpool
status:
loadBalancer: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml -o deployment.yml
kompose.version: 1.20.0 ()
creationTimestamp: null
labels:
io.kompose.service: accountpool
name: accountpool
namespace: accountpool
spec:
replicas: 2
revisionHistoryLimit: 1
strategy: {}
selector:
matchLabels:
io.kompose.service: accountpool
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml -o deployment.yml
kompose.version: 1.20.0 ()
creationTimestamp: null
labels:
io.kompose.service: accountpool
spec:
containers:
- env:
- name: REDIS_CONNECTION_STRING
valueFrom:
secretKeyRef:
name: redis
key: connection_string
- name: REDIS_PORT
value: '6379'
image: germey/accountpool:${TAG}
name: accountpool
resources:
limits:
memory: "500Mi"
cpu: "300m"
requests:
memory: "500Mi"
cpu: "300m"
ports:
- containerPort: 6777
volumeMounts:
- mountPath: "/app/accountpool/logs"
name: accountpool
restartPolicy: Always
volumes:
- name: accountpool
persistentVolumeClaim:
claimName: pvc-accountpool
status: {}
kind: List
metadata: {}