File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ name : question-svc
5
+ labels :
6
+ type : backend
7
+ app : question-svc
8
+ spec :
9
+ selector :
10
+ matchLabels :
11
+ type : backend
12
+ app : question-svc
13
+ template :
14
+ metadata :
15
+ name : question-svc
16
+ labels :
17
+ type : backend
18
+ app : question-svc
19
+ spec :
20
+ containers :
21
+ - name : question-svc
22
+ image : asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/question-svc:latest
23
+ ports :
24
+ - containerPort : 4001
25
+ ---
26
+ apiVersion : v1
27
+ kind : Service
28
+ metadata :
29
+ name : question-svc
30
+ spec :
31
+ type : LoadBalancer
32
+ ports :
33
+ - port : 80
34
+ targetPort : 4001
35
+ selector :
36
+ type : backend
37
+ app : question-svc
38
+ ---
39
+ apiVersion : autoscaling/v2
40
+ kind : HorizontalPodAutoscaler
41
+ metadata :
42
+ name : question-svc
43
+ spec :
44
+ scaleTargetRef :
45
+ apiVersion : apps/v1
46
+ kind : Deployment
47
+ name : question-svc
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