aligned naming with Google API
This commit is contained in:
		
							parent
							
								
									e2c0e18c28
								
							
						
					
					
						commit
						6c22e90fdd
					
				| 
						 | 
					@ -204,20 +204,21 @@ spec:
 | 
				
			||||||
    apiVersion: apps/v1
 | 
					    apiVersion: apps/v1
 | 
				
			||||||
    kind: Deployment
 | 
					    kind: Deployment
 | 
				
			||||||
    name: my-target
 | 
					    name: my-target
 | 
				
			||||||
  updatePolicy:
 | 
					  policy:
 | 
				
			||||||
    updateMode: Auto
 | 
					    updateMode: Auto
 | 
				
			||||||
  metrics:
 | 
					  goals:
 | 
				
			||||||
  - type: Resource
 | 
					    metrics:
 | 
				
			||||||
    resource:
 | 
					    - type: Resource
 | 
				
			||||||
    # Define the target CPU utilization request here
 | 
					      resource:
 | 
				
			||||||
    name: cpu
 | 
					      # Define the target CPU utilization request here
 | 
				
			||||||
    target:
 | 
					      name: cpu
 | 
				
			||||||
      type: Utilization
 | 
					      target:
 | 
				
			||||||
      averageUtilization: target-cpu-util
 | 
					        type: Utilization
 | 
				
			||||||
 | 
					        averageUtilization: target-cpu-util
 | 
				
			||||||
  constraints:
 | 
					  constraints:
 | 
				
			||||||
    minReplicas: min-num-replicas
 | 
					    global:
 | 
				
			||||||
    maxReplicas: max-num-replicas
 | 
					      minReplicas: min-num-replicas
 | 
				
			||||||
  resourcePolicy:
 | 
					      maxReplicas: max-num-replicas
 | 
				
			||||||
    containerControlledResources: [ memory, cpu ]  # Added cpu here as well
 | 
					    containerControlledResources: [ memory, cpu ]  # Added cpu here as well
 | 
				
			||||||
    container:
 | 
					    container:
 | 
				
			||||||
    - name: '*' # either a literal name, or "*" to match all containers
 | 
					    - name: '*' # either a literal name, or "*" to match all containers
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue