Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
package-authoring
pulumi-ai
pulumi-cdk
pulumi-cloud
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by
Title
m
millions-market-17062
02/04/2021, 3:11 PM
Hey, Is there a guide for
Cluster-Autoscaler
using Pulumi?
b
brave-planet-10645
02/04/2021, 3:23 PM
So we have an example that a colleague put together. It uses helm charts to do the cluster autoscaling
Is that useful?
m
millions-market-17062
02/04/2021, 3:27 PM
Yes please..
b
brave-planet-10645
02/04/2021, 3:29 PM
The entire project can be found here:
https://github.com/tusharshahrs/pulumi-homelab/blob/master/Pulumi-Workshop/eks-infrastructure
The core things to be aware of look like this: Created a VPC with this:
https://github.com/pulumi/examples/tree/master/aws-ts-vpc-with-ecs-fargate-py/vpc-crosswalk-ts
Created IAM roles:
https://github.com/tusharshahrs/pulumi-homelab/blob/master/Pulumi-Workshop/eks-infrastructure/iam.ts#L7-L23
https://github.com/tusharshahrs/pulumi-homelab/blob/master/Pulumi-Workshop/eks-infrastructure/iam.ts#L56-L59
Created Tags in the eks cluster:
https://github.com/tusharshahrs/pulumi-homelab/blob/master/Pulumi-Workshop/eks-infrastructure/index.ts#L43-L57
Created tags for cluster-autoscaler helm3 chart:
https://github.com/tusharshahrs/pulumi-homelab/blob/master/Pulumi-Workshop/k8s-autoscaling-nodes/index.ts#L37-L48
Used a helm3 chart for cluster autoscaler:
https://github.com/tusharshahrs/pulumi-homelab/blob/master/Pulumi-Workshop/k8s-autoscaling-nodes/index.ts#L57-L69
c
cool-fireman-90027
02/04/2021, 3:32 PM
Here is the helm3 chart:
https://artifacthub.io/packages/helm/cluster-autoscaler/cluster-autoscaler
b
billowy-army-68599
02/04/2021, 5:17 PM
I created a cluster autoscaler component resource in Go
https://github.com/jaxxstorm/pulumi-clusterautoscalerx
(I intend to make improvements here after some upcoming product changes)
#aws
Join Slack