-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70b2e6d
commit 82de99d
Showing
30 changed files
with
1,072 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,5 @@ status: | |
cpu: "3" | ||
memory: 3Gi | ||
upperBound: | ||
cpu: "5" | ||
memory: 5Gi | ||
cpu: "350m" | ||
memory: 3.5Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,5 @@ status: | |
cpu: "3" | ||
memory: 3Gi | ||
upperBound: | ||
cpu: "5" | ||
memory: 5Gi | ||
cpu: "350m" | ||
memory: 3.5Gi |
45 changes: 45 additions & 0 deletions
45
controllers/testdata/reconcile-for-the-istio-enabled-pod-working/after/hpa.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
metadata: | ||
annotations: | ||
tortoise.autoscaling.mercari.com/managed-by-tortoise: "true" | ||
tortoises.autoscaling.mercari.com/tortoise-name: mercari | ||
name: tortoise-hpa-mercari | ||
namespace: default | ||
spec: | ||
behavior: | ||
scaleDown: | ||
policies: | ||
- periodSeconds: 90 | ||
type: Percent | ||
value: 2 | ||
selectPolicy: Max | ||
scaleUp: | ||
policies: | ||
- periodSeconds: 60 | ||
type: Percent | ||
value: 100 | ||
selectPolicy: Max | ||
stabilizationWindowSeconds: 0 | ||
maxReplicas: 20 | ||
metrics: | ||
- containerResource: | ||
container: app | ||
name: cpu | ||
target: | ||
averageUtilization: 50 | ||
type: Utilization | ||
type: ContainerResource | ||
- containerResource: | ||
container: istio-proxy | ||
name: cpu | ||
target: | ||
averageUtilization: 75 | ||
type: Utilization | ||
type: ContainerResource | ||
minReplicas: 5 | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: mercari-app | ||
status: | ||
currentMetrics: null | ||
desiredReplicas: 0 |
108 changes: 108 additions & 0 deletions
108
controllers/testdata/reconcile-for-the-istio-enabled-pod-working/after/tortoise.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
metadata: | ||
name: mercari | ||
namespace: default | ||
spec: | ||
resourcePolicy: | ||
- autoscalingPolicy: | ||
cpu: Horizontal | ||
memory: Vertical | ||
containerName: app | ||
- autoscalingPolicy: | ||
cpu: Horizontal | ||
memory: Vertical | ||
containerName: istio-proxy | ||
targetRefs: | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: mercari-app | ||
status: | ||
conditions: | ||
tortoiseConditions: | ||
- message: "HPA target utilization is updated" | ||
reason: HPATargetUtilizationUpdated | ||
status: "True" | ||
type: HPATargetUtilizationUpdated | ||
containerRecommendationFromVPA: | ||
- containerName: app | ||
maxRecommendation: | ||
cpu: | ||
quantity: "3" | ||
updatedAt: null | ||
memory: | ||
quantity: 3Gi | ||
updatedAt: null | ||
recommendation: | ||
cpu: | ||
quantity: "3" | ||
updatedAt: null | ||
memory: | ||
quantity: 3Gi | ||
updatedAt: null | ||
- containerName: istio-proxy | ||
maxRecommendation: | ||
cpu: | ||
quantity: "3" | ||
updatedAt: null | ||
memory: | ||
quantity: 3Gi | ||
updatedAt: null | ||
recommendation: | ||
cpu: | ||
quantity: "3" | ||
updatedAt: null | ||
memory: | ||
quantity: 3Gi | ||
updatedAt: null | ||
recommendations: | ||
horizontal: | ||
maxReplicas: | ||
- from: 0 | ||
timezone: Local | ||
to: 24 | ||
updatedAt: "2023-10-06T01:15:46Z" | ||
value: 20 | ||
minReplicas: | ||
- from: 0 | ||
timezone: Local | ||
to: 24 | ||
updatedAt: "2023-10-06T01:15:46Z" | ||
value: 5 | ||
targetUtilizations: | ||
- containerName: app | ||
targetUtilization: | ||
cpu: 50 | ||
- containerName: istio-proxy | ||
targetUtilization: | ||
cpu: 75 | ||
vertical: | ||
containerResourceRecommendation: | ||
- RecommendedResource: | ||
cpu: "6" | ||
memory: 3Gi | ||
containerName: app | ||
- RecommendedResource: | ||
cpu: "4" | ||
memory: 3Gi | ||
containerName: istio-proxy | ||
targets: | ||
horizontalPodAutoscaler: tortoise-hpa-mercari | ||
verticalPodAutoscalers: | ||
- name: tortoise-updater-mercari | ||
role: Updater | ||
- name: tortoise-monitor-mercari | ||
role: Monitor | ||
tortoisePhase: Working | ||
containerResourcePhases: | ||
- containerName: "app" | ||
resourcePhases: | ||
cpu: | ||
phase: Working | ||
memory: | ||
phase: Working | ||
- containerName: "istio-proxy" | ||
resourcePhases: | ||
cpu: | ||
phase: Working | ||
memory: | ||
phase: Working |
44 changes: 44 additions & 0 deletions
44
controllers/testdata/reconcile-for-the-istio-enabled-pod-working/after/vpa-Monitor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
metadata: | ||
annotations: | ||
tortoise.autoscaling.mercari.com/managed-by-tortoise: "true" | ||
tortoises.autoscaling.mercari.com/tortoise-name: mercari | ||
name: tortoise-monitor-mercari | ||
namespace: default | ||
spec: | ||
resourcePolicy: | ||
containerPolicies: | ||
- containerName: app | ||
- containerName: istio-proxy | ||
targetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: mercari-app | ||
updatePolicy: | ||
updateMode: "Off" | ||
status: | ||
conditions: | ||
- lastTransitionTime: null | ||
status: "True" | ||
type: RecommendationProvided | ||
recommendation: | ||
containerRecommendations: | ||
- containerName: app | ||
lowerBound: | ||
cpu: "3" | ||
memory: 3Gi | ||
target: | ||
cpu: "3" | ||
memory: 3Gi | ||
upperBound: | ||
cpu: "5" | ||
memory: 5Gi | ||
- containerName: istio-proxy | ||
lowerBound: | ||
cpu: "3" | ||
memory: 3Gi | ||
target: | ||
cpu: "3" | ||
memory: 3Gi | ||
upperBound: | ||
cpu: "5" | ||
memory: 5Gi |
Oops, something went wrong.