-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.yaml
63 lines (63 loc) · 1.15 KB
/
api.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
apiVersion: v1
kind: Service
metadata:
name: service-cmd-api
labels:
app: api-linux
spec:
type: NodePort
ports:
- protocol: TCP
nodePort: 31090 # range from 30000-32767
port: 80
targetPort: 80
selector:
app: cmd-app
tier: backend
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-cmd-api
labels:
app: cmd-api
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: cmd-api
labels:
app: cmd-app
tier: backend
spec:
selector:
matchLabels:
app: cmd-app
tier: backend
strategy:
type: Recreate
template:
metadata:
labels:
app: cmd-app
tier: backend
spec:
containers:
- image: sarthaksharma5/api-webcgi
name: cmd-api
ports:
- containerPort: 80
name: cmd-api-access
volumeMounts:
- name: cmd-api-volume
mountPath: "/var/www/cgi-bin"
volumes:
- name: cmd-api-volume
persistentVolumeClaim:
claimName: pvc-cmd-api