-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cluster-autoscaler): add cluster autoscaler for aws
Note for when I'm back. This is the working autoscaler stuff, but the permissions come from the node. It doesn't have the correct IAM permissions for this so we need to figure out how to add that. I don't really want to do that in the KF installation, but ideally via a Terraform job which we can run in here. Annoyingly, I've lost access to AWS so I can't check my hypothesis out until I get that back.
- Loading branch information
1 parent
681d28d
commit eb36abf
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
28 changes: 28 additions & 0 deletions
28
cluster-autoscaler-aws/components/cluster-autoscaler-aws/application.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: <CLUSTER_NAME>-cluster-autoscaler-aws | ||
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-aws | ||
values: | | ||
autoDiscovery: | ||
clusterName: <CLUSTER_NAME> | ||
awsRegion: <CLOUD_REGION> | ||
cloudProvider: aws | ||
destination: | ||
name: <CLUSTER_DESTINATION> | ||
namespace: kube-system | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters