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
apiVersion: apps/v1
kind: Deployment
metadata:
name: novisync-web-react-front-prod
namespace: nodejsprod
spec:
replicas: 1
selector:
matchLabels:
app: novisync-web-react-front-prod-app
template:
metadata:
labels:
app: novisync-web-react-front-prod-app
spec:
containers:
- image: docker-registry-server:5000/novisync-web-react-front-prod:tagVersion
name: novisync-web-react-front-prod-cont
resources:
requests:
memory: "1Mi"
cpu: "0.1"
limits:
memory: "1000Mi"
cpu: "0.7"
---
apiVersion: v1
kind: Service
metadata:
name: novisync-web-react-front-prod-svc
namespace: nodejsprod
spec:
selector:
app: novisync-web-react-front-prod-app
type: NodePort
ports:
- nodePort: 31194
port: 5000
targetPort: 5000
---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: novisync-web-react-front-prod-autoscale
namespace: nodejsprod
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: novisync-web-react-front-prod
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 75