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
4
4
metadata :
5
5
name : backend-deployment
6
6
namespace : oauth2-fullstack
7
- labels :
8
- app : fastapi
9
- tier : backend
10
7
spec :
11
8
replicas : 1
9
+ strategy :
10
+ type : RollingUpdate
12
11
selector :
13
12
matchLabels :
14
13
app : fastapi
21
20
spec :
22
21
containers :
23
22
- name : fastapi
23
+ envFrom :
24
+ - secretRef :
25
+ name : fastapi
24
26
image : jasonbigcow/oauth2-fastapi
25
27
ports :
26
28
- 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 1
1
apiVersion : apps/v1
2
2
kind : HorizontalPodAutoscaler
3
3
metadata :
4
- name : fastapi
4
+ name : backend-hpa
5
5
namespace : oauth2-fullstack
6
- labels :
7
- app : fastapi
8
- tier : backend
9
6
spec :
10
7
scaleTargetRef :
11
8
apiVersion : apps/v1
12
9
kind : Deployment
13
- name : fastapi
10
+ name : backend-deployment
14
11
minReplicas : 1
15
12
maxReplicas : 3
16
13
metrics :
Original file line number Diff line number Diff line change 1
-
2
- apiVersion : fastapi/v1
1
+ apiVersion : v1
3
2
kind : Service
4
3
metadata :
5
4
name : backend-service
6
5
namespace : oauth2-fullstack
7
- labels :
8
- app : fastapi
9
- tier : backend
10
6
spec :
7
+ type : LoadBalancer
11
8
selector :
12
9
app : fastapi
13
10
tier : backend
You can’t perform that action at this time.
0 commit comments