Skip to content

Commit

Permalink
allow to re-add HPA name if same (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanposhiho committed Apr 11, 2024
1 parent 71c3130 commit c9a9c31
Show file tree
Hide file tree
Showing 24 changed files with 1,583 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,82 @@ spec:
- containerName: nginx
policy:
cpu: Horizontal
memory: Vertical
memory: Vertical
status:
autoscalingPolicy:
- containerName: istio-proxy
policy:
cpu: Horizontal
memory: Vertical
- containerName: nginx
policy:
cpu: Horizontal
memory: Vertical
tortoisePhase: Working
containerResourcePhases:
- containerName: "nginx"
resourcePhases:
cpu:
phase: Working
memory:
phase: Working
- containerName: "istio-proxy"
resourcePhases:
cpu:
phase: Working
memory:
phase: Working
targets:
scaleTargetRef:
kind: Deployment
name: sample
horizontalPodAutoscaler: sample
verticalPodAutoscalers:
- name: tortoise-monitor-sample
role: Monitor
- name: tortoise-updater-sample
role: Updater
conditions:
containerRecommendationFromVPA:
- containerName: echo
maxRecommendation:
cpu:
quantity: 6m
updatedAt: "2023-10-04T15:45:16Z"
memory:
quantity: "56623104"
updatedAt: "2023-10-04T15:45:16Z"
recommendation:
cpu:
quantity: 6m
updatedAt: "2023-10-04T15:45:16Z"
memory:
quantity: "56623104"
updatedAt: "2023-10-04T15:45:16Z"
recommendations:
horizontal:
targetUtilizations:
- containerName: "nginx"
targetUtilization:
cpu: 30
- containerName: "istio-proxy"
targetUtilization:
cpu: 30
maxReplicas:
- from: 0
timezone: Asia/Tokyo
to: 24
updatedAt: "2023-10-04T15:45:16Z"
value: 12
minReplicas:
- from: 0
timezone: Asia/Tokyo
to: 1
updatedAt: "2023-10-04T15:45:16Z"
value: 3
vertical:
containerResourceRecommendation:
- RecommendedResource:
cpu: 6m
memory: "56623104"
containerName: nginx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,82 @@ spec:
- containerName: nginx
policy:
cpu: Vertical
memory: Vertical
memory: Vertical
status:
autoscalingPolicy:
- containerName: istio-proxy
policy:
cpu: Horizontal
memory: Vertical
- containerName: nginx
policy:
cpu: Horizontal
memory: Vertical
tortoisePhase: Working
containerResourcePhases:
- containerName: "nginx"
resourcePhases:
cpu:
phase: Working
memory:
phase: Working
- containerName: "istio-proxy"
resourcePhases:
cpu:
phase: Working
memory:
phase: Working
targets:
scaleTargetRef:
kind: Deployment
name: sample
horizontalPodAutoscaler: sample
verticalPodAutoscalers:
- name: tortoise-monitor-sample
role: Monitor
- name: tortoise-updater-sample
role: Updater
conditions:
containerRecommendationFromVPA:
- containerName: echo
maxRecommendation:
cpu:
quantity: 6m
updatedAt: "2023-10-04T15:45:16Z"
memory:
quantity: "56623104"
updatedAt: "2023-10-04T15:45:16Z"
recommendation:
cpu:
quantity: 6m
updatedAt: "2023-10-04T15:45:16Z"
memory:
quantity: "56623104"
updatedAt: "2023-10-04T15:45:16Z"
recommendations:
horizontal:
targetUtilizations:
- containerName: "nginx"
targetUtilization:
cpu: 30
- containerName: "istio-proxy"
targetUtilization:
cpu: 30
maxReplicas:
- from: 0
timezone: Asia/Tokyo
to: 24
updatedAt: "2023-10-04T15:45:16Z"
value: 12
minReplicas:
- from: 0
timezone: Asia/Tokyo
to: 1
updatedAt: "2023-10-04T15:45:16Z"
value: 3
vertical:
containerResourceRecommendation:
- RecommendedResource:
cpu: 6m
memory: "56623104"
containerName: nginx
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,82 @@ spec:
- containerName: nginx
policy:
cpu: Horizontal
memory: Vertical
memory: Vertical
status:
autoscalingPolicy:
- containerName: istio-proxy
policy:
cpu: Horizontal
memory: Vertical
- containerName: nginx
policy:
cpu: Horizontal
memory: Vertical
tortoisePhase: Working
containerResourcePhases:
- containerName: "nginx"
resourcePhases:
cpu:
phase: Working
memory:
phase: Working
- containerName: "istio-proxy"
resourcePhases:
cpu:
phase: Working
memory:
phase: Working
targets:
scaleTargetRef:
kind: Deployment
name: sample
horizontalPodAutoscaler: sample
verticalPodAutoscalers:
- name: tortoise-monitor-sample
role: Monitor
- name: tortoise-updater-sample
role: Updater
conditions:
containerRecommendationFromVPA:
- containerName: echo
maxRecommendation:
cpu:
quantity: 6m
updatedAt: "2023-10-04T15:45:16Z"
memory:
quantity: "56623104"
updatedAt: "2023-10-04T15:45:16Z"
recommendation:
cpu:
quantity: 6m
updatedAt: "2023-10-04T15:45:16Z"
memory:
quantity: "56623104"
updatedAt: "2023-10-04T15:45:16Z"
recommendations:
horizontal:
targetUtilizations:
- containerName: "nginx"
targetUtilization:
cpu: 30
- containerName: "istio-proxy"
targetUtilization:
cpu: 30
maxReplicas:
- from: 0
timezone: Asia/Tokyo
to: 24
updatedAt: "2023-10-04T15:45:16Z"
value: 12
minReplicas:
- from: 0
timezone: Asia/Tokyo
to: 1
updatedAt: "2023-10-04T15:45:16Z"
value: 3
vertical:
containerResourceRecommendation:
- RecommendedResource:
cpu: 6m
memory: "56623104"
containerName: nginx
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,82 @@ spec:
- containerName: nginx
policy:
cpu: Vertical
memory: Vertical
memory: Vertical
status:
autoscalingPolicy:
- containerName: istio-proxy
policy:
cpu: Horizontal
memory: Vertical
- containerName: nginx
policy:
cpu: Horizontal
memory: Vertical
tortoisePhase: Working
containerResourcePhases:
- containerName: "nginx"
resourcePhases:
cpu:
phase: Working
memory:
phase: Working
- containerName: "istio-proxy"
resourcePhases:
cpu:
phase: Working
memory:
phase: Working
targets:
scaleTargetRef:
kind: Deployment
name: sample
horizontalPodAutoscaler: sample
verticalPodAutoscalers:
- name: tortoise-monitor-sample
role: Monitor
- name: tortoise-updater-sample
role: Updater
conditions:
containerRecommendationFromVPA:
- containerName: echo
maxRecommendation:
cpu:
quantity: 6m
updatedAt: "2023-10-04T15:45:16Z"
memory:
quantity: "56623104"
updatedAt: "2023-10-04T15:45:16Z"
recommendation:
cpu:
quantity: 6m
updatedAt: "2023-10-04T15:45:16Z"
memory:
quantity: "56623104"
updatedAt: "2023-10-04T15:45:16Z"
recommendations:
horizontal:
targetUtilizations:
- containerName: "nginx"
targetUtilization:
cpu: 30
- containerName: "istio-proxy"
targetUtilization:
cpu: 30
maxReplicas:
- from: 0
timezone: Asia/Tokyo
to: 24
updatedAt: "2023-10-04T15:45:16Z"
value: 12
minReplicas:
- from: 0
timezone: Asia/Tokyo
to: 1
updatedAt: "2023-10-04T15:45:16Z"
value: 3
vertical:
containerResourceRecommendation:
- RecommendedResource:
cpu: 6m
memory: "56623104"
containerName: nginx
Loading

0 comments on commit c9a9c31

Please sign in to comment.