File tree Expand file tree Collapse file tree 2 files changed +128
-0
lines changed Expand file tree Collapse file tree 2 files changed +128
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ name : matching-svc
5
+ labels :
6
+ type : backend
7
+ app : matching-svc
8
+ spec :
9
+ selector :
10
+ matchLabels :
11
+ type : backend
12
+ app : matching-svc
13
+ template :
14
+ metadata :
15
+ name : matching-svc
16
+ labels :
17
+ type : backend
18
+ app : matching-svc
19
+ spec :
20
+ containers :
21
+ - name : matching-svc
22
+ image : asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/matching-svc:latest
23
+ imagePullPolicy : Always
24
+ ports :
25
+ - containerPort : 5001
26
+ env :
27
+ - name : NODE_ENV
28
+ value : production
29
+ envFrom :
30
+ - secretRef :
31
+ name : matching-service-config
32
+ resources :
33
+ requests :
34
+ memory : " 512Mi"
35
+ cpu : " 500m"
36
+ limits :
37
+ memory : " 1Gi"
38
+ cpu : " 1"
39
+ dnsPolicy : ClusterFirst
40
+ ---
41
+ # This is an internal service, not exposed
42
+ apiVersion : v1
43
+ kind : Service
44
+ metadata :
45
+ name : matching-svc
46
+ spec :
47
+ type : ClusterIP
48
+ ports :
49
+ - port : 5001
50
+ targetPort : 5001
51
+ selector :
52
+ type : backend
53
+ app : matching-svc
54
+ ---
55
+ apiVersion : autoscaling/v2
56
+ kind : HorizontalPodAutoscaler
57
+ metadata :
58
+ name : matching-svc
59
+ spec :
60
+ scaleTargetRef :
61
+ apiVersion : apps/v1
62
+ kind : Deployment
63
+ name : matching-svc
64
+ minReplicas : 1
65
+ maxReplicas : 5
66
+ metrics :
67
+ - type : Resource
68
+ resource :
69
+ name : cpu
70
+ target :
71
+ type : Utilization
72
+ averageUtilization : 80
Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ name : redis-server
5
+ labels :
6
+ app : redis-server
7
+ spec :
8
+ selector :
9
+ matchLabels :
10
+ app : redis-server
11
+ template :
12
+ metadata :
13
+ labels :
14
+ app : redis-server
15
+ spec :
16
+ containers :
17
+ - name : redis-server
18
+ image : redis:latest
19
+ imagePullPolicy : Always
20
+ ports :
21
+ - containerPort : 6379
22
+ dnsPolicy : ClusterFirst
23
+
24
+ ---
25
+ # This is an internal service, not exposed
26
+ apiVersion : v1
27
+ kind : Service
28
+ metadata :
29
+ name : redis-server
30
+ spec :
31
+ type : ClusterIP # Internal service type
32
+ ports :
33
+ - port : 6379
34
+ targetPort : 6379
35
+ selector :
36
+ app : redis-server
37
+
38
+ ---
39
+ apiVersion : autoscaling/v2
40
+ kind : HorizontalPodAutoscaler
41
+ metadata :
42
+ name : redis-server
43
+ spec :
44
+ scaleTargetRef :
45
+ apiVersion : apps/v1
46
+ kind : Deployment
47
+ name : redis-server
48
+ minReplicas : 1
49
+ maxReplicas : 5
50
+ metrics :
51
+ - type : Resource
52
+ resource :
53
+ name : cpu
54
+ target :
55
+ type : Utilization
56
+ averageUtilization : 80
You can’t perform that action at this time.
0 commit comments