aligned naming with Google API

This commit is contained in:
Haoran Qiu 2023-05-22 20:50:03 -07:00
parent e2c0e18c28
commit 6c22e90fdd
1 changed files with 13 additions and 12 deletions

View File

@ -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