-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8-nlsql-deployment.yaml
executable file
·79 lines (79 loc) · 1.38 KB
/
k8-nlsql-deployment.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
apiVersion: apps/v1
kind: Deployment
metadata:
name: nlsql-server
spec:
replicas: 1
selector:
matchLabels:
app: nlsql-server
template:
metadata:
labels:
app: nlsql-server
spec:
containers:
- name: nlsql-server
image: jonemark226/nlsql-server:02
ports:
- containerPort: 3002
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "256Mi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: nlsql-server-service
spec:
selector:
app: nlsql-server
ports:
- protocol: TCP
port: 3002
targetPort: 3002
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nlsql-client
spec:
replicas: 1
selector:
matchLabels:
app: nlsql-client
template:
metadata:
labels:
app: nlsql-client
spec:
containers:
- name: nlsql-client
image: jonemark226/nlsql-client:02
ports:
- containerPort: 80
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "256Mi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: nlsql-client-service
spec:
selector:
app: nlsql-client
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer