From 6c22e90fdd52c354a42cf0c9b8e5ce03746ac962 Mon Sep 17 00:00:00 2001 From: Haoran Qiu Date: Mon, 22 May 2023 20:50:03 -0700 Subject: [PATCH] aligned naming with Google API --- multidimensional-pod-autoscaler/AEP.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/multidimensional-pod-autoscaler/AEP.md b/multidimensional-pod-autoscaler/AEP.md index ceb02f801253..b06b2110c5ac 100644 --- a/multidimensional-pod-autoscaler/AEP.md +++ b/multidimensional-pod-autoscaler/AEP.md @@ -204,20 +204,21 @@ spec: apiVersion: apps/v1 kind: Deployment name: my-target - updatePolicy: + policy: updateMode: Auto - metrics: - - type: Resource - resource: - # Define the target CPU utilization request here - name: cpu - target: - type: Utilization - averageUtilization: target-cpu-util + goals: + metrics: + - type: Resource + resource: + # Define the target CPU utilization request here + name: cpu + target: + type: Utilization + averageUtilization: target-cpu-util constraints: - minReplicas: min-num-replicas - maxReplicas: max-num-replicas - resourcePolicy: + global: + minReplicas: min-num-replicas + maxReplicas: max-num-replicas containerControlledResources: [ memory, cpu ] # Added cpu here as well container: - name: '*' # either a literal name, or "*" to match all containers