Skip to content

Commit

Permalink
feat: add cluster autoscaler civo
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Aug 22, 2024
1 parent 897b643 commit 914428f
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 0 deletions.
23 changes: 23 additions & 0 deletions cluster-autoscaler-civo/cluster-autoscaler-civo.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-civo-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-civo
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,44 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: <CLUSTER_NAME>-cluster-autoscaler-civo
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: '20'
spec:
project: <PROJECT>
source:
repoURL: https://kubernetes.github.io/autoscaler
targetRevision: 9.37.0
chart: cluster-autoscaler
helm:
releaseName: cluster-autoscaler-civo
values: |
autoDiscovery:
clusterName: <CLUSTER_NAME>
cloudProvider: civo
extraArgs:
nodes: 1:10:<CLUSTER_NAME>
skip-nodes-with-local-storage: false
skip-nodes-with-system-pods: false
extraEnvSecrets:
CIVO_API_KEY:
name: civo-api-access
key: api-key
CIVO_API_URL:
name: civo-api-access
key: api-url
CIVO_CLUSTER_ID:
name: civo-api-access
key: cluster-id
CIVO_REGION:
name: civo-api-access
key: region
destination:
name: <CLUSTER_DESTINATION>
namespace: kube-system
syncPolicy:
automated:
prune: true
selfHeal: true
7 changes: 7 additions & 0 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ apps:
description: "A Kubernetes controller & set of CRDs which provide advanced deployment capabilities such as blue-green, canary, canary analysis, experimentation, & progressive delivery features to Kubernetes."
category: CI/CD

- 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."
category: Architecture

- name: datadog-agent
displayName: Datadog
website: "https://github.com/DataDog/datadog-agent"
Expand Down
20 changes: 20 additions & 0 deletions logos/cluster-autoscaler.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 914428f

Please sign in to comment.