-
Notifications
You must be signed in to change notification settings - Fork 3
/
server.yaml
55 lines (54 loc) · 1.12 KB
/
server.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
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: devo-server
labels:
app: devo-server
spec:
replicas: 1
selector:
matchLabels:
app: devo-server
template:
metadata:
labels:
app: devo-server
spec:
containers:
- image: gcr.io/ocismartdevice/devo-server
imagePullPolicy: Always
name: devo-server
env:
- name: DB_HOST
value: devo-database
- name: DB_PORT
value: "3306"
- name: DB_USER
value: "root"
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-root-auth
key: root-password
ports:
- containerPort: 1337
name: devo-websocket
- containerPort: 3001
name: devo-server
---
apiVersion: v1
kind: Service
metadata:
name: devo-server
labels:
app: devo-server
spec:
type: LoadBalancer
ports:
- port: 1337
name: devo-websocket
- port: 3001
name: devo-server
selector:
app: devo-server