-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-server.yml
49 lines (48 loc) · 1014 Bytes
/
api-server.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
---
apiVersion: v1
kind: Service
metadata:
name: necbaas-api-server
spec:
type: LoadBalancer
ports:
- name: "http-port"
protocol: "TCP"
port: 8080
targetPort: 8080
selector:
app: necbaas-api-server
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: necbaas-api-deploy
spec:
replicas: 1
selector:
matchLabels:
app: necbaas-api-server
template:
metadata:
labels:
app: necbaas-api-server
spec:
containers:
- name: api-container
image: necbaas/api-server
ports:
- containerPort: 8080
envFrom:
- configMapRef:
name: necbaas-baas-server-config
- secretRef:
name: necbaas-mongo-secrets
# # volumeMounts の追記
# volumeMounts:
# - mountPath: "/data/db"
# name: mongo-data
# # volumes の追記
# volumes:
# - name: mongo-data
# persistentVolumeClaim:
# claimName: necbaas-nfs-claim