Skip to content

Commit 29ac7c1

Browse files
committed
modularized config
1 parent 154c85c commit 29ac7c1

2 files changed

Lines changed: 18 additions & 19 deletions

File tree

challenge9/kubernetes/deployment.yaml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,5 @@ spec:
5555
port: 80
5656
targetPort: 80
5757
nodePort: 30080
58-
---
59-
apiVersion: autoscaling/v2
60-
kind: HorizontalPodAutoscaler
61-
metadata:
62-
name: hpa
63-
spec:
64-
scaleTargetRef:
65-
apiVersion: apps/v1
66-
kind: Deployment
67-
name: my-app-deployment
68-
minReplicas: 3
69-
maxReplicas: 9
70-
metrics:
71-
- type: Resource
72-
resource:
73-
name: cpu
74-
target:
75-
type: Utilization
76-
averageUtilization: 50
7758

7859

challenge9/kubernetes/hpa.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: autoscaling/v2
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: hpa
5+
spec:
6+
scaleTargetRef:
7+
apiVersion: apps/v1
8+
kind: Deployment
9+
name: my-app-deployment
10+
minReplicas: 3
11+
maxReplicas: 9
12+
metrics:
13+
- type: Resource
14+
resource:
15+
name: cpu
16+
target:
17+
type: Utilization
18+
averageUtilization: 50

0 commit comments

Comments
 (0)