Skip to content

Commit

Permalink
feat(cluster-autoscaler): add cluster autoscaler for aws (#165)
Browse files Browse the repository at this point in the history
* feat(cluster-autoscaler): add cluster autoscaler for aws

* add annotations for autoscaler sa

* fix(cluster-autoscaler-civo): reduce to few than 200 chars

---------

Co-authored-by: mrrishi <[email protected]>
  • Loading branch information
mrsimonemms and jokestax authored Oct 24, 2024
1 parent 040370d commit aca1dbd
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
23 changes: 23 additions & 0 deletions cluster-autoscaler-aws/cluster-autoscaler-aws.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: <CLUSTER_NAME>-cluster-autoscaler-aws-components
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: '100'
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: <GITOPS_REPO_URL>
path: <REGISTRY_PATH>/components/cluster-autoscaler-aws
targetRevision: HEAD
destination:
name: in-cluster
namespace: kube-system
syncPolicy:
automated:
prune: true
selfHeal: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: <CLUSTER_NAME>-cluster-autoscaler-aws
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: '20'
kubefirst.konstruct.io/application-name: cluster-autoscaler-aws
kubefirst.konstruct.io/source: catalog-templates
spec:
project: <PROJECT>
source:
repoURL: https://kubernetes.github.io/autoscaler
targetRevision: 9.37.0
chart: cluster-autoscaler
helm:
releaseName: cluster-autoscaler-aws
values: |
autoDiscovery:
clusterName: <CLUSTER_NAME>
awsRegion: <CLOUD_REGION>
cloudProvider: aws
rbac:
serviceAccount:
annotations:
eks.amazonaws.com/role-arn : arn:aws:iam::<AWS_ACCOUNT_ID>:role/cluster-autoscaler-<CLUSTER_NAME>
create: true
name: "cluster-autoscaler"
destination:
name: <CLUSTER_DESTINATION>
namespace: kube-system
syncPolicy:
automated:
prune: true
selfHeal: true
9 changes: 8 additions & 1 deletion index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,18 @@ apps:
description: "Cilium is an open-source, cloud-native tool for managing, securing, and monitoring network connectivity between workloads, powered by the innovative Kernel technology eBPF."
category: Observability

- name: cluster-autoscaler-aws
displayName: AWS Cluster Autoscaler
website: "https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler"
imageUrl: "https://raw.githubusercontent.com/kubefirst/gitops-catalog/main/logos/cluster-autoscaler.svg"
description: "Configured for clusters running on AWS. Cluster Autoscaler is a tool that automatically adjusts the size of the Kubernetes cluster when required."
category: Architecture

- name: cluster-autoscaler-civo
displayName: Civo Cluster Autoscaler
website: "https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler"
imageUrl: "https://raw.githubusercontent.com/kubefirst/gitops-catalog/main/logos/cluster-autoscaler.svg"
description: "Configured for clusters running on Civo. Cluster Autoscaler is a tool that automatically adjusts the size of the Kubernetes cluster when one of the following conditions is true: 1) there are pods that failed to run in the cluster due to insufficient resources, or 2) there are nodes in the cluster that have been underutilized for an extended period of time and their pods can be placed on other existing nodes."
description: "Configured for clusters running on Civo. Cluster Autoscaler is a tool that automatically adjusts the size of the Kubernetes cluster when required."
category: Architecture

- name: datadog-agent
Expand Down

0 comments on commit aca1dbd

Please sign in to comment.