Skip to content

Commit

Permalink
Enabling Proactive Autoscaling for the Production Clusters (#4762)
Browse files Browse the repository at this point in the history
  • Loading branch information
manish-jangra authored Oct 21, 2024
1 parent 924ab30 commit 51cdfcb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,3 @@ kind: ApplicationSet
metadata:
name: workspaces-member
$patch: delete
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: proactive-scaler
$patch: delete
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,8 @@ patches:
kind: ApplicationSet
version: v1alpha1
name: notification-controller
- path: production-overlay-patch.yaml
target:
kind: ApplicationSet
version: v1alpha1
name: proactive-scaler
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ kind: ApplicationSet
metadata:
name: tempo
$patch: delete
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: proactive-scaler
$patch: delete
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,3 @@ kind: ApplicationSet
metadata:
name: workspaces-member
$patch: delete
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: proactive-scaler
$patch: delete
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resources:
- ../../base/keycloak
- ../../base/repository-validator
- ../../base/cluster-secret-store-rh
- ../../base/member/infra-deployments/proactive-scaler
patchesStrategicMerge:
- delete-applications.yaml
namespace: argocd
Expand Down Expand Up @@ -191,3 +192,8 @@ patches:
kind: ApplicationSet
version: v1alpha1
name: notification-controller
- path: production-overlay-patch.yaml
target:
kind: ApplicationSet
version: v1alpha1
name: proactive-scaler
64 changes: 0 additions & 64 deletions configs/proactive-scaler/base/deployments.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,6 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: m6a-2xlarge
namespace: proactive-scaler
spec:
replicas: 1
selector:
matchLabels:
run: m6a-2xlarge
template:
metadata:
labels:
run: m6a-2xlarge
spec:
nodeSelector:
konflux-ci.dev/workload: konflux-tenants
node.kubernetes.io/instance-type: m6a.2xlarge
tolerations:
- key: konflux-ci.dev/workload
operator: "Equal"
value: "konflux-tenants"
effect: "NoSchedule"
priorityClassName: pause-pods
containers:
- name: reserve-resources
image: registry.k8s.io/pause
resources:
requests:
memory: "22Gi"
cpu: "5"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: m6a-4xlarge
namespace: proactive-scaler
Expand Down Expand Up @@ -62,35 +30,3 @@ spec:
requests:
memory: "45Gi"
cpu: "10"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: c5d-4xlarge
namespace: proactive-scaler
spec:
replicas: 1
selector:
matchLabels:
run: c5d-4xlarge
template:
metadata:
labels:
run: c5d-4xlarge
spec:
nodeSelector:
konflux-ci.dev/storage: nvme
node.kubernetes.io/instance-type: c5d.4xlarge
tolerations:
- key: konflux-ci.dev/storage
operator: "Equal"
value: "nvme"
effect: "NoSchedule"
priorityClassName: pause-pods
containers:
- name: reserve-resources
image: registry.k8s.io/pause
resources:
requests:
memory: "22Gi"
cpu: "10"

0 comments on commit 51cdfcb

Please sign in to comment.