Skip to content

Commit

Permalink
Merge pull request #265 from lbbniu/fix/lbbniu/doc
Browse files Browse the repository at this point in the history
Fix ehpa document yaml field
  • Loading branch information
qmhu authored Apr 15, 2022
2 parents cac72ad + 3dc83d6 commit 6d3635f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,20 @@ kind: HorizontalPodAutoscaler
spec:
metrics:
- pods:
metricName: pod_cpu_usage
selector:
matchLabels:
autoscaling.crane.io/effective-hpa-uid: f9b92249-eab9-4671-afe0-17925e5987b8
targetAverageValue: 100m
metric:
name: crane_pod_cpu_usage
selector:
matchLabels:
autoscaling.crane.io/effective-hpa-uid: f9b92249-eab9-4671-afe0-17925e5987b8
target:
type: AverageValue
averageValue: 100m
type: Pods
- resource:
name: cpu
targetAverageUtilization: 50
target:
type: Utilization
averageUtilization: 50
type: Resource
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,20 @@ kind: HorizontalPodAutoscaler
spec:
metrics:
- pods:
metricName: pod_cpu_usage
selector:
matchLabels:
autoscaling.crane.io/effective-hpa-uid: f9b92249-eab9-4671-afe0-17925e5987b8
targetAverageValue: 100m
metric:
name: crane_pod_cpu_usage
selector:
matchLabels:
autoscaling.crane.io/effective-hpa-uid: f9b92249-eab9-4671-afe0-17925e5987b8
target:
type: AverageValue
averageValue: 100m
type: Pods
- resource:
name: cpu
targetAverageUtilization: 50
target:
type: Utilization
averageUtilization: 50
type: Resource
```
Expand Down

0 comments on commit 6d3635f

Please sign in to comment.