forked from blackdog1987/rap2-delos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rap2_deploy_k8s.yml
46 lines (45 loc) · 991 Bytes
/
rap2_deploy_k8s.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: rap2
namespace: apps
spec:
replicas: 2
selector:
matchLables:
app: rap2
template:
metadata:
lables:
app: rap2
spec:
containers:
- images: blackdog1987/rap2-delos:2.6.67cc4db
imagePullPolicy: IfNotPresent
name: rap2
resources:
limits:
cpu: "1"
memory: 2Gi
workingDir: /app
command: [ "node", "dispatch.js" ]
livenessProbe:
tcpSocket:
port: 8080
ports:
- containerPort: 8080
env:
- name: MYSQL_URL
value: "10.30.10.10"
- name: MYSQL_PORT
value: "3306"
- name: MYSQL_USERNAME
value: "rap2"
- name: MYSQL_PASSWD
value: ""
- name: MYSQL_SCHEMA
value: "rap2"
- name: REDIS_URL
value: "redis"
- name: REDIS_PORT
value: "6379"