-
Notifications
You must be signed in to change notification settings - Fork 383
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
Showing
15 changed files
with
70,268 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
k8s-app: load-test1 | ||
qcloud-app: load-test1 | ||
name: load-test1 | ||
namespace: default | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 3 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
k8s-app: load-test1 | ||
qcloud-app: load-test1 | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 0 | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
k8s-app: load-test1 | ||
qcloud-app: load-test1 | ||
spec: | ||
affinity: {} | ||
containers: | ||
- command: | ||
- /bin/bash | ||
- -c | ||
- sleep 36000 | ||
image: docker.io/gocrane/stress-ng:v0.12.09 | ||
imagePullPolicy: IfNotPresent | ||
name: stress | ||
resources: | ||
limits: | ||
cpu: "4" | ||
memory: 4Gi | ||
requests: | ||
cpu: 250m | ||
memory: 256Mi |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: analysis.crane.io/v1alpha1 | ||
kind: RecommendationRule | ||
metadata: | ||
name: test-rule | ||
spec: | ||
runInterval: 5m # run every 2 minutes | ||
resourceSelectors: # how to select resource to process | ||
- kind: Deployment | ||
apiVersion: apps/v1 | ||
name: coredns | ||
namespaceSelector: | ||
any: true # scan all namespace | ||
recommenders: # recommenders to run | ||
- name: Resource | ||
config: | ||
cpu-request-percentile: "0.9" |
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,25 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: tomcatinfra | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: tomcatinfra | ||
template: | ||
metadata: | ||
name: tomcatinfra | ||
labels: | ||
app: tomcatinfra | ||
spec: | ||
containers: | ||
- image: saravak/tomcat8 | ||
name: tomcatapp | ||
resources: | ||
limits: | ||
cpu: "100m" | ||
memory: 1Mi | ||
requests: | ||
cpu: "100m" | ||
memory: 1Mi |
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,31 @@ | ||
apiVersion: autoscaling.crane.io/v1alpha1 | ||
kind: EffectiveHorizontalPodAutoscaler | ||
metadata: | ||
name: recognizehealthcodeocr-gpu-youtu | ||
namespace: ns-prjggssf-1565189-production | ||
spec: | ||
# ScaleTargetRef is the reference to the workload that should be scaled. | ||
scaleTargetRef: | ||
apiVersion: platform.stke/v1alpha1 | ||
kind: StatefulSetPlus | ||
name: recognizehealthcodeocr-gpu-youtu | ||
minReplicas: 5 # MinReplicas is the lower limit replicas to the scale target which the autoscaler can scale down to. | ||
maxReplicas: 50 # MaxReplicas is the upper limit replicas to the scale target which the autoscaler can scale up to. | ||
scaleStrategy: Preview # ScaleStrategy indicate the strategy to scaling target, value can be "Auto" and "Preview". | ||
# Metrics contains the specifications for which to use to calculate the desired replica count. | ||
metrics: | ||
- type: Resource | ||
resource: | ||
name: cpu | ||
target: | ||
type: Utilization | ||
averageUtilization: 30 | ||
# Prediction defines configurations for predict resources. | ||
# If unspecified, defaults don't enable prediction. | ||
prediction: | ||
predictionWindowSeconds: 3600 # PredictionWindowSeconds is the time window to predict metrics in the future. | ||
predictionAlgorithm: | ||
algorithmType: dsp | ||
dsp: | ||
sampleInterval: "60s" | ||
historyLength: "14d" |
Oops, something went wrong.