File tree Expand file tree Collapse file tree 3 files changed +16
-16
lines changed
Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,10 @@ kind: Deployment
44metadata :
55 name : backend-deployment
66 namespace : oauth2-fullstack
7- labels :
8- app : fastapi
9- tier : backend
107spec :
118 replicas : 1
9+ strategy :
10+ type : RollingUpdate
1211 selector :
1312 matchLabels :
1413 app : fastapi
2120 spec :
2221 containers :
2322 - name : fastapi
23+ envFrom :
24+ - secretRef :
25+ name : fastapi
2426 image : jasonbigcow/oauth2-fastapi
2527 ports :
2628 - containerPort : 5001
27- envFrom :
28- - secretRef :
29- name : fastapi
29+ resources :
30+ requests :
31+ memory : " 256Mi"
32+ cpu : " 50m"
33+ limits :
34+ memory : " 512Mi"
35+ cpu : " 100m"
Original file line number Diff line number Diff line change 11apiVersion : apps/v1
22kind : HorizontalPodAutoscaler
33metadata :
4- name : fastapi
4+ name : backend-hpa
55 namespace : oauth2-fullstack
6- labels :
7- app : fastapi
8- tier : backend
96spec :
107 scaleTargetRef :
118 apiVersion : apps/v1
129 kind : Deployment
13- name : fastapi
10+ name : backend-deployment
1411 minReplicas : 1
1512 maxReplicas : 3
1613 metrics :
Original file line number Diff line number Diff line change 1-
2- apiVersion : fastapi/v1
1+ apiVersion : v1
32kind : Service
43metadata :
54 name : backend-service
65 namespace : oauth2-fullstack
7- labels :
8- app : fastapi
9- tier : backend
106spec :
7+ type : LoadBalancer
118 selector :
129 app : fastapi
1310 tier : backend
You can’t perform that action at this time.
0 commit comments