Skip to content

Commit 837165b

Browse files
Merge pull request #232257 from MGoedtel/VPAUpdate327
Minor edits to Metrics Server VPA
2 parents f09d747 + aacfd0a commit 837165b

File tree

2 files changed

+52
-52
lines changed

2 files changed

+52
-52
lines changed

articles/aks/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
href: cluster-container-registry-integration.md
206206
- name: Use Vertical Pod Autoscaler
207207
href: vertical-pod-autoscaler.md
208-
- name: Metrics Server VPA Throttling
208+
- name: Configure Metrics Server VPA
209209
href: use-metrics-server-vertical-pod-autoscaler.md
210210
- name: Scale an AKS cluster
211211
href: scale-cluster.md

articles/aks/use-metrics-server-vertical-pod-autoscaler.md

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Configure Metrics Server VPA in Azure Kubernetes Service (AKS)
33
description: Learn how to vertically autoscale your Metrics Server pods on an Azure Kubernetes Service (AKS) cluster.
44
ms.topic: article
5-
ms.date: 03/21/2023
5+
ms.date: 03/27/2023
66
---
77

88
# Configure Metrics Server VPA in Azure Kubernetes Service (AKS)
@@ -24,22 +24,22 @@ To update the coefficient values, create a ConfigMap in the overlay *kube-system
2424
1. Create a ConfigMap file named *metrics-server-config.yaml* and copy in the following manifest.
2525

2626
```yml
27-
apiVersion: v1
28-
kind: ConfigMap
29-
metadata:
30-
name: metrics-server-config
31-
namespace: kube-system
32-
labels:
33-
kubernetes.io/cluster-service: "true"
34-
addonmanager.kubernetes.io/mode: EnsureExists
35-
data:
36-
NannyConfiguration: |-
37-
apiVersion: nannyconfig/v1alpha1
38-
kind: NannyConfiguration
39-
baseCPU: 100m
40-
cpuPerNode: 1m
41-
baseMemory: 100Mi
42-
memoryPerNode: 8Mi
27+
apiVersion: v1
28+
kind: ConfigMap
29+
metadata:
30+
name: metrics-server-config
31+
namespace: kube-system
32+
labels:
33+
kubernetes.io/cluster-service: "true"
34+
addonmanager.kubernetes.io/mode: EnsureExists
35+
data:
36+
NannyConfiguration: |-
37+
apiVersion: nannyconfig/v1alpha1
38+
kind: NannyConfiguration
39+
baseCPU: 100m
40+
cpuPerNode: 1m
41+
baseMemory: 100Mi
42+
memoryPerNode: 8Mi
4343
```
4444
4545
In the ConfigMap example, the resource limit and request are changed to the following:
@@ -89,22 +89,22 @@ If you would like to bypass VPA for Metrics Server and manually control its reso
8989
1. Create a ConfigMap file named *metrics-server-config.yaml* and copy in the following manifest.
9090

9191
```yml
92-
apiVersion: v1
93-
kind: ConfigMap
94-
metadata:
95-
name: metrics-server-config
96-
namespace: kube-system
97-
labels:
98-
kubernetes.io/cluster-service: "true"
99-
addonmanager.kubernetes.io/mode: EnsureExists
100-
data:
101-
NannyConfiguration: |-
102-
apiVersion: nannyconfig/v1alpha1
103-
kind: NannyConfiguration
104-
baseCPU: 100m
105-
cpuPerNode: 0m
106-
baseMemory: 100Mi
107-
memoryPerNode: 0Mi
92+
apiVersion: v1
93+
kind: ConfigMap
94+
metadata:
95+
name: metrics-server-config
96+
namespace: kube-system
97+
labels:
98+
kubernetes.io/cluster-service: "true"
99+
addonmanager.kubernetes.io/mode: EnsureExists
100+
data:
101+
NannyConfiguration: |-
102+
apiVersion: nannyconfig/v1alpha1
103+
kind: NannyConfiguration
104+
baseCPU: 100m
105+
cpuPerNode: 0m
106+
baseMemory: 100Mi
107+
memoryPerNode: 0Mi
108108
```
109109

110110
In this ConfigMap example, it changes the resource limit and request to the following:
@@ -126,7 +126,7 @@ If you would like to bypass VPA for Metrics Server and manually control its reso
126126
kubectl -n kube-system delete po metrics-server-pod-name
127127
```
128128

129-
4. To verify the updated resources took affect, run the following command to review the Metrics Server VPA log.
129+
4. To verify the updated resources took effect, run the following command to review the Metrics Server VPA log.
130130

131131
```bash
132132
kubectl -n kube-system logs metrics-server-pod-name -c metrics-server-vpa
@@ -150,22 +150,22 @@ If you would like to bypass VPA for Metrics Server and manually control its reso
150150
1. If you use the following configmap, the Metrics Server VPA customizations aren't applied. You need add a unit for `baseCPU`.
151151

152152
```yml
153-
apiVersion: v1
154-
kind: ConfigMap
155-
metadata:
156-
name: metrics-server-config
157-
namespace: kube-system
158-
labels:
159-
kubernetes.io/cluster-service: "true"
160-
addonmanager.kubernetes.io/mode: EnsureExists
161-
data:
162-
NannyConfiguration: |-
163-
apiVersion: nannyconfig/v1alpha1
164-
kind: NannyConfiguration
165-
baseCPU: 100
166-
cpuPerNode: 1m
167-
baseMemory: 100Mi
168-
memoryPerNode: 8Mi
153+
apiVersion: v1
154+
kind: ConfigMap
155+
metadata:
156+
name: metrics-server-config
157+
namespace: kube-system
158+
labels:
159+
kubernetes.io/cluster-service: "true"
160+
addonmanager.kubernetes.io/mode: EnsureExists
161+
data:
162+
NannyConfiguration: |-
163+
apiVersion: nannyconfig/v1alpha1
164+
kind: NannyConfiguration
165+
baseCPU: 100
166+
cpuPerNode: 1m
167+
baseMemory: 100Mi
168+
memoryPerNode: 8Mi
169169
```
170170

171171
The following example output resembles the results showing the updated throttling settings aren't applied.
@@ -200,4 +200,4 @@ Metrics Server is a component in the core metrics pipeline. For more information
200200
[metrics-server-api-design]: https://github.com/kubernetes/design-proposals-archive/blob/main/instrumentation/resource-metrics-api.md
201201

202202
<!--- INTERNAL LINKS --->
203-
[horizontal-pod-autoscaler]: concepts-scale.md#horizontal-pod-autoscaler
203+
[horizontal-pod-autoscaler]: concepts-scale.md#horizontal-pod-autoscaler

0 commit comments

Comments
 (0)