Skip to content

Commit 0bf6dc7

Browse files
author
github-actions
committed
Update perfectscale-autoscaler chart with new package version v1.0.4
1 parent 559dd7f commit 0bf6dc7

11 files changed

+223
-59
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
apiVersion: perfectscale.io/v1
2+
kind: ClusterAutomationConfig
3+
metadata:
4+
name: cluster-automation-config
5+
spec:
6+
automation:
7+
operational:
8+
stopAllAutomation: false
9+
workloadTypes:
10+
Deployment:
11+
operational:
12+
automationMode: "Enabled"
13+
restrictions:
14+
cpuManagement:
15+
request:
16+
increaseEnabled: true
17+
decreaseEnabled: true
18+
limit:
19+
keepLimit: false
20+
memoryManagement:
21+
request:
22+
increaseEnabled: true
23+
decreaseEnabled: true
24+
limit:
25+
increaseEnabled: true
26+
decreaseEnabled: true
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
apiVersion: perfectscale.io/v1
2+
kind: ClusterAutomationConfig
3+
metadata:
4+
name: cluster-automation-config
5+
spec:
6+
automation:
7+
operational:
8+
stopAllAutomation: false
9+
workloadTypes:
10+
Deployment:
11+
operational:
12+
automationMode: "Enabled"
13+
restrictions:
14+
cpuManagement:
15+
request:
16+
increaseEnabled: false
17+
decreaseEnabled: true
18+
limit:
19+
keepLimit: true
20+
memoryManagement:
21+
request:
22+
increaseEnabled: false
23+
decreaseEnabled: true
24+
limit:
25+
increaseEnabled: false
26+
decreaseEnabled: false
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: perfectscale.io/v1
2+
kind: NamespaceAutomationConfig
3+
metadata:
4+
name: your-namespace-automation-config
5+
spec:
6+
automation:
7+
operational:
8+
automationMode: "Disabled"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
apiVersion: perfectscale.io/v1
2+
kind: NamespaceAutomationConfig
3+
metadata:
4+
name: your-namespace-automation-config
5+
spec:
6+
automation:
7+
workloadTypes:
8+
Deployment:
9+
operational:
10+
automationMode: "Enabled"
11+
timeConstraints:
12+
maxAutomationFrequency: "15m"
13+
maintenanceWindow:
14+
monday:
15+
- "10:00-18:00"
16+
tuesday:
17+
- "10:00-18:00"
18+
wednesday:
19+
- "10:00-18:00"
20+
thursday:
21+
- "10:00-18:00"
22+
friday:
23+
- "10:00-18:00"
24+
saturday:
25+
- "10:00-18:00"
26+
sunday:
27+
- "10:00-18:00"
28+
restrictions:
29+
cpuManagement:
30+
request:
31+
increaseEnabled: true
32+
decreaseEnabled: true
33+
minimumCores: 0.5
34+
maximumCores: 8
35+
limit:
36+
keepLimit: false
37+
memoryManagement:
38+
request:
39+
increaseEnabled: true
40+
decreaseEnabled: true
41+
minimumGiB: 1
42+
maximumGiB: 16
43+
limit:
44+
increaseEnabled: true
45+
decreaseEnabled: true
46+
minimumGiB: 2
47+
maximumGiB: 31
48+
memoryLeakDetection:
49+
maxMemoryIncreaseIterations:
50+
daily: 4
51+
weekly: 7
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: perfectscale.io/v1
2+
kind: WorkloadAutomationConfig
3+
metadata:
4+
name: your-workload-automation-config
5+
spec:
6+
targetRef:
7+
kind: Deployment
8+
name: deployment-name
9+
automation:
10+
operational:
11+
automationMode: "Disabled"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apiVersion: perfectscale.io/v1
2+
kind: WorkloadAutomationConfig
3+
metadata:
4+
name: your-workload-automation-config
5+
spec:
6+
targetRef:
7+
kind: Deployment
8+
name: deployment-name
9+
automation:
10+
operational:
11+
automationMode: "Enabled"
12+
containers:
13+
container-name:
14+
operational:
15+
restrictions:
16+
cpuManagement:
17+
request:
18+
increaseEnabled: true
19+
decreaseEnabled: true
20+
minimumCores: 0.5
21+
maximumCores: 8
22+
limit:
23+
keepLimit: false
24+
memoryManagement:
25+
request:
26+
increaseEnabled: true
27+
decreaseEnabled: true
28+
minimumGiB: 1
29+
maximumGiB: 16
30+
limit:
31+
increaseEnabled: true
32+
decreaseEnabled: true
33+
minimumGiB: 2
34+
maximumGiB: 31
35+
memoryLeakDetection:
36+
maxMemoryIncreaseIterations:
37+
daily: 4
38+
weekly: 7
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
apiVersion: perfectscale.io/v1
2+
kind: WorkloadAutomationConfig
3+
metadata:
4+
name: your-workload-automation-config
5+
spec:
6+
targetRef:
7+
kind: Deployment
8+
name: deployment-name
9+
automation:
10+
operational:
11+
automationMode: "Enabled"
12+
timeConstraints:
13+
maxAutomationFrequency: "15m"
14+
maintenanceWindow:
15+
monday:
16+
- "10:00-18:00"
17+
tuesday:
18+
- "10:00-18:00"
19+
wednesday:
20+
- "10:00-18:00"
21+
thursday:
22+
- "10:00-18:00"
23+
friday:
24+
- "10:00-18:00"
25+
saturday:
26+
- "10:00-18:00"
27+
sunday:
28+
- "10:00-18:00"
29+
restrictions:
30+
cpuManagement:
31+
request:
32+
increaseEnabled: true
33+
decreaseEnabled: true
34+
minimumCores: 0.5
35+
maximumCores: 8
36+
limit:
37+
keepLimit: false
38+
memoryManagement:
39+
request:
40+
increaseEnabled: true
41+
decreaseEnabled: true
42+
minimumGiB: 1
43+
maximumGiB: 16
44+
limit:
45+
increaseEnabled: true
46+
decreaseEnabled: true
47+
minimumGiB: 2
48+
maximumGiB: 31
49+
memoryLeakDetection:
50+
maxMemoryIncreaseIterations:
51+
daily: 4
52+
weekly: 7

charts/psc-autoscaler/templates/NOTES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@
1414
echo "Visit http://127.0.0.1:8443 to use your application"
1515
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8443:$CONTAINER_PORT
1616
{{- end }}
17+
18+
2. To view Automation CRD Examples, visit:
19+
{{ .Values.settings.automationCRDExamplesUrl }}

charts/psc-autoscaler/templates/admission.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ metadata:
4949
webhooks:
5050
- name: configs.perfectscale.io
5151
rules:
52+
- apiGroups: [ "perfectscale.io" ]
53+
apiVersions: [ "v1" ]
54+
operations: [ "CREATE", "UPDATE" ]
55+
resources: [ "clusterautomationconfigs" ]
56+
scope: "*"
5257
- apiGroups: [ "perfectscale.io" ]
5358
apiVersions: [ "v1" ]
5459
operations: [ "CREATE", "UPDATE" ]
@@ -64,4 +69,4 @@ webhooks:
6469
admissionReviewVersions: [ "v1" ]
6570
sideEffects: None
6671
timeoutSeconds: {{ (.Values.admission).timeout | default 15 }}
67-
failurePolicy: "Fail"
72+
failurePolicy: "Fail"

charts/psc-autoscaler/templates/clusterautomationconfig.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)