-
Notifications
You must be signed in to change notification settings - Fork 17
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
7dd5e6d
commit 9a6c8e2
Showing
51 changed files
with
4,104 additions
and
67 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
48 changes: 48 additions & 0 deletions
48
...ortoisectl/test/testdata/success-all-in-all-namespace/after/deployments/deployment-a.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,48 @@ | ||
metadata: | ||
name: mercari-app-a | ||
namespace: success-all-in-all-namespace | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app: mercari | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/restartedAt: updated | ||
creationTimestamp: null | ||
labels: | ||
app: mercari | ||
spec: | ||
containers: | ||
- image: awesome-mercari-app-image | ||
imagePullPolicy: Always | ||
name: app | ||
resources: | ||
requests: | ||
cpu: "10" | ||
memory: 10Gi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
- image: awesome-istio-proxy-image | ||
imagePullPolicy: Always | ||
name: istio-proxy | ||
resources: | ||
requests: | ||
cpu: "4" | ||
memory: 4Gi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 | ||
status: {} |
48 changes: 48 additions & 0 deletions
48
...l/test/testdata/success-all-in-all-namespace/after/deployments/deployment-another-ns.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,48 @@ | ||
metadata: | ||
name: mercari-app | ||
namespace: success-all-in-all-namespace-2 | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app: mercari | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/restartedAt: updated | ||
creationTimestamp: null | ||
labels: | ||
app: mercari | ||
spec: | ||
containers: | ||
- image: awesome-mercari-app-image | ||
imagePullPolicy: Always | ||
name: app | ||
resources: | ||
requests: | ||
cpu: "10" | ||
memory: 10Gi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
- image: awesome-istio-proxy-image | ||
imagePullPolicy: Always | ||
name: istio-proxy | ||
resources: | ||
requests: | ||
cpu: "4" | ||
memory: 4Gi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 | ||
status: {} |
48 changes: 48 additions & 0 deletions
48
...ortoisectl/test/testdata/success-all-in-all-namespace/after/deployments/deployment-b.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,48 @@ | ||
metadata: | ||
name: mercari-app-b | ||
namespace: success-all-in-all-namespace | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app: mercari | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/restartedAt: updated | ||
creationTimestamp: null | ||
labels: | ||
app: mercari | ||
spec: | ||
containers: | ||
- image: awesome-mercari-app-image | ||
imagePullPolicy: Always | ||
name: app | ||
resources: | ||
requests: | ||
cpu: "10" | ||
memory: 10Gi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
- image: awesome-istio-proxy-image | ||
imagePullPolicy: Always | ||
name: istio-proxy | ||
resources: | ||
requests: | ||
cpu: "4" | ||
memory: 4Gi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 | ||
status: {} |
48 changes: 48 additions & 0 deletions
48
...ortoisectl/test/testdata/success-all-in-all-namespace/after/deployments/deployment-c.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,48 @@ | ||
metadata: | ||
name: mercari-app-c | ||
namespace: success-all-in-all-namespace | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app: mercari | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/restartedAt: updated | ||
creationTimestamp: null | ||
labels: | ||
app: mercari | ||
spec: | ||
containers: | ||
- image: awesome-mercari-app-image | ||
imagePullPolicy: Always | ||
name: app | ||
resources: | ||
requests: | ||
cpu: "10" | ||
memory: 10Gi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
- image: awesome-istio-proxy-image | ||
imagePullPolicy: Always | ||
name: istio-proxy | ||
resources: | ||
requests: | ||
cpu: "4" | ||
memory: 4Gi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 | ||
status: {} |
141 changes: 141 additions & 0 deletions
141
cmd/tortoisectl/test/testdata/success-all-in-all-namespace/after/tortoises/tortoise-a.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,141 @@ | ||
metadata: | ||
name: mercaritortoise-a | ||
namespace: success-all-in-all-namespace | ||
spec: | ||
targetRefs: | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: mercari-app-a | ||
updateMode: "Off" | ||
status: | ||
autoscalingPolicy: | ||
- containerName: app | ||
policy: | ||
cpu: Horizontal | ||
memory: Vertical | ||
- containerName: istio-proxy | ||
policy: | ||
cpu: Horizontal | ||
memory: Vertical | ||
conditions: | ||
containerRecommendationFromVPA: | ||
- containerName: app | ||
maxRecommendation: | ||
cpu: | ||
quantity: "3" | ||
updatedAt: "2023-01-01T00:00:00Z" | ||
memory: | ||
quantity: 3Gi | ||
updatedAt: "2023-01-01T00:00:00Z" | ||
recommendation: | ||
cpu: | ||
quantity: "3" | ||
updatedAt: "2023-01-01T00:00:00Z" | ||
memory: | ||
quantity: 3Gi | ||
updatedAt: "2023-01-01T00:00:00Z" | ||
- containerName: istio-proxy | ||
maxRecommendation: | ||
cpu: | ||
quantity: "3" | ||
updatedAt: "2023-01-01T00:00:00Z" | ||
memory: | ||
quantity: 3Gi | ||
updatedAt: "2023-01-01T00:00:00Z" | ||
recommendation: | ||
cpu: | ||
quantity: "3" | ||
updatedAt: "2023-01-01T00:00:00Z" | ||
memory: | ||
quantity: 3Gi | ||
updatedAt: "2023-01-01T00:00:00Z" | ||
containerResourceRequests: | ||
- containerName: app | ||
resource: | ||
cpu: "6" | ||
memory: 3Gi | ||
- containerName: istio-proxy | ||
resource: | ||
cpu: "4" | ||
memory: 3Gi | ||
tortoiseConditions: | ||
- lastTransitionTime: "2023-01-01T00:00:00Z" | ||
lastUpdateTime: "2023-01-01T00:00:00Z" | ||
message: the current number of replicas is not bigger than the preferred max | ||
replica number | ||
reason: ScaledUpBasedOnPreferredMaxReplicas | ||
status: "False" | ||
type: ScaledUpBasedOnPreferredMaxReplicas | ||
- lastTransitionTime: "2023-01-01T00:00:00Z" | ||
lastUpdateTime: "2023-01-01T00:00:00Z" | ||
message: HPA target utilization is updated | ||
reason: HPATargetUtilizationUpdated | ||
status: "True" | ||
type: HPATargetUtilizationUpdated | ||
- lastTransitionTime: "2023-01-01T00:00:00Z" | ||
lastUpdateTime: "2023-01-01T00:00:00Z" | ||
message: The recommendation is provided | ||
status: "True" | ||
type: VerticalRecommendationUpdated | ||
- lastTransitionTime: "2023-01-01T00:00:00Z" | ||
lastUpdateTime: "2023-01-01T00:00:00Z" | ||
status: "False" | ||
type: FailedToReconcile | ||
containerResourcePhases: | ||
- containerName: app | ||
resourcePhases: | ||
cpu: | ||
lastTransitionTime: null | ||
phase: Working | ||
memory: | ||
lastTransitionTime: "2023-01-01T00:00:00Z" | ||
phase: Working | ||
- containerName: istio-proxy | ||
resourcePhases: | ||
cpu: | ||
lastTransitionTime: null | ||
phase: Working | ||
memory: | ||
lastTransitionTime: "2023-01-01T00:00:00Z" | ||
phase: Working | ||
recommendations: | ||
horizontal: | ||
maxReplicas: | ||
- from: 0 | ||
timezone: Local | ||
to: 24 | ||
updatedAt: "2023-01-01T00:00:00Z" | ||
value: 20 | ||
minReplicas: | ||
- from: 0 | ||
timezone: Local | ||
to: 24 | ||
updatedAt: "2023-01-01T00:00:00Z" | ||
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 | ||
scaleTargetRef: | ||
kind: "" | ||
name: "" | ||
verticalPodAutoscalers: | ||
- name: tortoise-monitor-mercari | ||
role: Monitor | ||
tortoisePhase: Working |
Oops, something went wrong.