Skip to content

Commit 2a0fd26

Browse files
authored
Update tutorial-kubernetes-scale.md
1 parent f2b28d7 commit 2a0fd26

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/aks/tutorial-kubernetes-scale.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ These resource requests and limits are defined for each container, as shown in t
103103
1. Create a manifest file to define the autoscaler behavior and resource limits, as shown in the following condensed example manifest file `aks-store-quickstart-hpa.yaml`:
104104

105105
```yaml
106-
apiVersion: autoscaling/v1
106+
apiVersion: autoscaling/v2
107107
kind: HorizontalPodAutoscaler
108108
metadata:
109109
name: store-front-hpa
@@ -114,13 +114,13 @@ These resource requests and limits are defined for each container, as shown in t
114114
apiVersion: apps/v1
115115
kind: Deployment
116116
name: store-front
117-
metrics:
118-
- type: Resource
119-
resource:
120-
name: cpu
121-
target:
122-
type: Utilization
123-
averageUtilization: 50
117+
metrics:
118+
- type: Resource
119+
resource:
120+
name: cpu
121+
target:
122+
type: Utilization
123+
averageUtilization: 50
124124
```
125125
126126
2. Apply the autoscaler manifest file using the `kubectl apply` command.

0 commit comments

Comments
 (0)