-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[aws-eks]: Deploy Helm chart to EKS via CDK #3748
Comments
@zanhsieh I am the maintainer of aws-lambda-layer-kubectl, which has been the core component of @aws-cdk/aws-eks I believe it's possible as long as we build the helm client into a standalone lambda layer so CDK can create yet another construct lib on top if it. I'll look into it and any thoughts would be appreciated. |
Got some idea from this repo: https://github.com/microsoft/helm-web-api The repo above still works today. So the basic workflow (although it might be a lot of steps) to make this work is:
helm install chart/on-demand-micro-services-deployment-k8s --name on-demand-micro-services-deployment-k8s --set rbac.create=true
After deployment, just follow the syntax as Yeah, it's messy and hacky, and it's neither M$ way nor AWS way ... |
I think @pahud's approach makes senes. If he can add the Helm client in the kubectl layer, we could create a custom resource that interacts with the client and creates/updates/deletes Helm charts from your cluster. |
Saw that helm was recently added to the lambda layer. Thanks @pahud. Looking forward to see helm support in CDK so we can cleanup our bash scripts. |
Yes this will be awesome to support. |
A clear example of supporting helm with a CDK deployment would be helpful. Thanks for all the awesome work! |
Hi @pahud, I get this error when trying to add helm to a kubernetes cluster in python with both the construct eks.helm_chart() and cluster.add_chart()
This is my code:
Any ideas? |
@FarshadNiayesh I am afraid the vended Helm3 will not create new namespace unless you specify But it makes sense to bump the Helm3 version to the latest v3.1.2 Please watch aws-samples/aws-lambda-layer-kubectl#27 and I will bundle the latest Helm v3.1.2 in the kubectl layer before creating a PR for CDK to improve this. |
Thank you so much for your response! |
🚀 Feature Request
General Information
NA
Description
Helm chart is a de facto solution while deploying 3rd party solutions into Kubernetes. In general, developers would like to have those solutions ready, otherwise they need to spend huge amount of time for mocking up those 3rd party solutions (a blackbox per se). If we could deploy 3rd party solutions into EKS with CDK, I feel it will attract even more developers to work on their solutions within AWS EKS.
CDK might consider this as a plugin to support since we all know Helm api is not maintained by CDK.
BTW, Terraform is able to deploy Helm chart.
The text was updated successfully, but these errors were encountered: