Skip to content

Commit

Permalink
Update perfectscale-autoscaler chart with new package version v1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 12, 2024
1 parent 559dd7f commit 0bf6dc7
Show file tree
Hide file tree
Showing 11 changed files with 223 additions and 59 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: perfectscale.io/v1
kind: ClusterAutomationConfig
metadata:
name: cluster-automation-config
spec:
automation:
operational:
stopAllAutomation: false
workloadTypes:
Deployment:
operational:
automationMode: "Enabled"
restrictions:
cpuManagement:
request:
increaseEnabled: true
decreaseEnabled: true
limit:
keepLimit: false
memoryManagement:
request:
increaseEnabled: true
decreaseEnabled: true
limit:
increaseEnabled: true
decreaseEnabled: true
26 changes: 26 additions & 0 deletions charts/psc-autoscaler/examples/cluster-config-cost-saving.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: perfectscale.io/v1
kind: ClusterAutomationConfig
metadata:
name: cluster-automation-config
spec:
automation:
operational:
stopAllAutomation: false
workloadTypes:
Deployment:
operational:
automationMode: "Enabled"
restrictions:
cpuManagement:
request:
increaseEnabled: false
decreaseEnabled: true
limit:
keepLimit: true
memoryManagement:
request:
increaseEnabled: false
decreaseEnabled: true
limit:
increaseEnabled: false
decreaseEnabled: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: perfectscale.io/v1
kind: NamespaceAutomationConfig
metadata:
name: your-namespace-automation-config
spec:
automation:
operational:
automationMode: "Disabled"
51 changes: 51 additions & 0 deletions charts/psc-autoscaler/examples/namespace-config-override.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: perfectscale.io/v1
kind: NamespaceAutomationConfig
metadata:
name: your-namespace-automation-config
spec:
automation:
workloadTypes:
Deployment:
operational:
automationMode: "Enabled"
timeConstraints:
maxAutomationFrequency: "15m"
maintenanceWindow:
monday:
- "10:00-18:00"
tuesday:
- "10:00-18:00"
wednesday:
- "10:00-18:00"
thursday:
- "10:00-18:00"
friday:
- "10:00-18:00"
saturday:
- "10:00-18:00"
sunday:
- "10:00-18:00"
restrictions:
cpuManagement:
request:
increaseEnabled: true
decreaseEnabled: true
minimumCores: 0.5
maximumCores: 8
limit:
keepLimit: false
memoryManagement:
request:
increaseEnabled: true
decreaseEnabled: true
minimumGiB: 1
maximumGiB: 16
limit:
increaseEnabled: true
decreaseEnabled: true
minimumGiB: 2
maximumGiB: 31
memoryLeakDetection:
maxMemoryIncreaseIterations:
daily: 4
weekly: 7
11 changes: 11 additions & 0 deletions charts/psc-autoscaler/examples/workload-config-exclusion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: perfectscale.io/v1
kind: WorkloadAutomationConfig
metadata:
name: your-workload-automation-config
spec:
targetRef:
kind: Deployment
name: deployment-name
automation:
operational:
automationMode: "Disabled"
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: perfectscale.io/v1
kind: WorkloadAutomationConfig
metadata:
name: your-workload-automation-config
spec:
targetRef:
kind: Deployment
name: deployment-name
automation:
operational:
automationMode: "Enabled"
containers:
container-name:
operational:
restrictions:
cpuManagement:
request:
increaseEnabled: true
decreaseEnabled: true
minimumCores: 0.5
maximumCores: 8
limit:
keepLimit: false
memoryManagement:
request:
increaseEnabled: true
decreaseEnabled: true
minimumGiB: 1
maximumGiB: 16
limit:
increaseEnabled: true
decreaseEnabled: true
minimumGiB: 2
maximumGiB: 31
memoryLeakDetection:
maxMemoryIncreaseIterations:
daily: 4
weekly: 7
52 changes: 52 additions & 0 deletions charts/psc-autoscaler/examples/workload-config-override.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
apiVersion: perfectscale.io/v1
kind: WorkloadAutomationConfig
metadata:
name: your-workload-automation-config
spec:
targetRef:
kind: Deployment
name: deployment-name
automation:
operational:
automationMode: "Enabled"
timeConstraints:
maxAutomationFrequency: "15m"
maintenanceWindow:
monday:
- "10:00-18:00"
tuesday:
- "10:00-18:00"
wednesday:
- "10:00-18:00"
thursday:
- "10:00-18:00"
friday:
- "10:00-18:00"
saturday:
- "10:00-18:00"
sunday:
- "10:00-18:00"
restrictions:
cpuManagement:
request:
increaseEnabled: true
decreaseEnabled: true
minimumCores: 0.5
maximumCores: 8
limit:
keepLimit: false
memoryManagement:
request:
increaseEnabled: true
decreaseEnabled: true
minimumGiB: 1
maximumGiB: 16
limit:
increaseEnabled: true
decreaseEnabled: true
minimumGiB: 2
maximumGiB: 31
memoryLeakDetection:
maxMemoryIncreaseIterations:
daily: 4
weekly: 7
3 changes: 3 additions & 0 deletions charts/psc-autoscaler/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@
echo "Visit http://127.0.0.1:8443 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8443:$CONTAINER_PORT
{{- end }}

2. To view Automation CRD Examples, visit:
{{ .Values.settings.automationCRDExamplesUrl }}
7 changes: 6 additions & 1 deletion charts/psc-autoscaler/templates/admission.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ metadata:
webhooks:
- name: configs.perfectscale.io
rules:
- apiGroups: [ "perfectscale.io" ]
apiVersions: [ "v1" ]
operations: [ "CREATE", "UPDATE" ]
resources: [ "clusterautomationconfigs" ]
scope: "*"
- apiGroups: [ "perfectscale.io" ]
apiVersions: [ "v1" ]
operations: [ "CREATE", "UPDATE" ]
Expand All @@ -64,4 +69,4 @@ webhooks:
admissionReviewVersions: [ "v1" ]
sideEffects: None
timeoutSeconds: {{ (.Values.admission).timeout | default 15 }}
failurePolicy: "Fail"
failurePolicy: "Fail"
6 changes: 0 additions & 6 deletions charts/psc-autoscaler/templates/clusterautomationconfig.yaml

This file was deleted.

54 changes: 2 additions & 52 deletions charts/psc-autoscaler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ replicaCount: 3
image:
repository: public.ecr.aws/perfectscale-io/psc-autoscaler
pullPolicy: Always
tag: "v1.0.3"
tag: "v1.0.4"
settings:
port: 8443
env: "prod"
logLevel: "DEBUG"
automationCRDExamplesUrl: "https://github.com/perfectscale-io/perfectscale-io.github.io/tree/main/charts/psc-autoscaler/examples"
psUrl: "https://api.app.perfectscale.io"
telemetryUrl: "https://api.app.perfectscale.io/psc-telemetry"
pushTelemetryFrequency: "1m"
Expand Down Expand Up @@ -119,54 +120,3 @@ integrationTests:
requests:
cpu: 100m
memory: 100Mi
# Cluster automation configuration
clusterAutomationConfig:
automation:
workloadTypes:
Deployment:
operational:
automationMode: "Enabled"
operational:
stopAllAutomation: true
timeConstraints:
maxAutomationFrequency: "30m"
maintenanceWindow:
monday:
- "00:00-23:59"
tuesday:
- "00:00-23:59"
wednesday:
- "00:00-23:59"
thursday:
- "00:00-23:59"
friday:
- "00:00-23:59"
saturday:
- "00:00-23:59"
sunday:
- "00:00-23:59"
restrictions:
workloadMinWasteUSDPerMonth: 5
cpuManagement:
request:
increaseEnabled: false
decreaseEnabled: true
minimumCores: -1
maximumCores: -1
limit:
keepLimit: true
memoryManagement:
request:
increaseEnabled: false
decreaseEnabled: true
minimumGiB: -1
maximumGiB: -1
limit:
increaseEnabled: false
decreaseEnabled: false
minimumGiB: -1
maximumGiB: -1
memoryLeakDetection:
maxMemoryIncreaseIterations:
daily: 3
weekly: 6

0 comments on commit 0bf6dc7

Please sign in to comment.