-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
cra.yml
62 lines (62 loc) · 1.44 KB
/
cra.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
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: apps/v1
kind: Deployment
metadata:
# Unique key of the Deployment instance
name: cra-deployment
labels:
app: cra
spec:
replicas: 1
selector:
matchLabels:
app: cra
template:
metadata:
labels:
# Apply this label to pods and default
# the Deployment label selector to this value
app: cra
spec:
containers:
- name: clamav-rest-api
# Run this image
image: benzino77/clamav-rest-api
env:
- name: NODE_ENV
valueFrom:
configMapKeyRef:
name: cra-configmap
key: node-env
- name: CLAMD_IP
valueFrom:
configMapKeyRef:
name: cra-configmap
key: clamd-ip
- name: APP_FORM_KEY
valueFrom:
configMapKeyRef:
name: cra-configmap
key: app-form-key
- name: APP_MAX_FILE_SIZE
valueFrom:
configMapKeyRef:
name: cra-configmap
key: app-max-file-size
ports:
- containerPort: 3000
protocol: TCP
name: cra-port
---
apiVersion: v1
kind: Service
metadata:
name: cra-service
spec:
type: NodePort
selector:
app: cra
ports:
- protocol: TCP
port: 3000
targetPort: cra-port
nodePort: 30080