Skip to content

Commit

Permalink
aligned naming with Google API
Browse files Browse the repository at this point in the history
  • Loading branch information
James-QiuHaoran committed May 23, 2023
1 parent e2c0e18 commit 6c22e90
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions multidimensional-pod-autoscaler/AEP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c22e90

Please sign in to comment.