File tree Expand file tree Collapse file tree 2 files changed +70
-1
lines changed
Expand file tree Collapse file tree 2 files changed +70
-1
lines changed Original file line number Diff line number Diff line change 1+ apiVersion : apps/v1
2+ kind : Deployment
3+ metadata :
4+ name : session-svc
5+ labels :
6+ type : backend
7+ app : session-svc
8+ spec :
9+ selector :
10+ matchLabels :
11+ type : backend
12+ app : session-svc
13+ template :
14+ metadata :
15+ name : session-svc
16+ labels :
17+ type : backend
18+ app : session-svc
19+ spec :
20+ containers :
21+ - name : session-svc
22+ image : asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/session-svc:latest
23+ imagePullPolicy : Always
24+ ports :
25+ - containerPort : 5001
26+ envFrom :
27+ - secretRef :
28+ name : session-service-config
29+ resources :
30+ requests :
31+ memory : " 512Mi"
32+ cpu : " 500m"
33+ limits :
34+ memory : " 1Gi"
35+ cpu : " 1"
36+ dnsPolicy : ClusterFirst
37+ ---
38+ # This is an internal service, not exposed
39+ apiVersion : v1
40+ kind : Service
41+ metadata :
42+ name : session-svc
43+ spec :
44+ type : ClusterIP
45+ ports :
46+ - port : 5001
47+ targetPort : 5001
48+ selector :
49+ type : backend
50+ app : session-svc
51+ ---
52+ apiVersion : autoscaling/v2
53+ kind : HorizontalPodAutoscaler
54+ metadata :
55+ name : session-svc
56+ spec :
57+ scaleTargetRef :
58+ apiVersion : apps/v1
59+ kind : Deployment
60+ name : session-svc
61+ minReplicas : 1
62+ maxReplicas : 5
63+ metrics :
64+ - type : Resource
65+ resource :
66+ name : cpu
67+ target :
68+ type : Utilization
69+ averageUtilization : 80
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ httpServer.listen(PORT, () => {
5353} ) ;
5454
5555/**
56- * On connection, use the utility file provided by y-websocket
56+ * On connection, use the utility file provided by y-websocket.
5757 */
5858wss . on ( "connection" , ( ws , req ) => {
5959 console . log ( "wss:connection" ) ;
You can’t perform that action at this time.
0 commit comments