question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[aws-eks] Values passed to AddHelmChart are not getting applied

See original GitHub issue

I am trying to apply the Helm chart for “aws-load-balancer-controller” from this EKS charts repository https://github.com/aws/eks-charts/tree/master/stable/aws-load-balancer-controller

I am following the documentation from https://www.eksworkshop.com/beginner/180_fargate/prerequisites-for-alb/ and trying to setup the same via CDK. I have created an iamserviceaccount “aws-load-balancer-controller-test” and i am passing this service account to the chart values like below to my Fargate cluster. But when the cluster comes up, the installation has not taken my service account and instead it is creating a new service account irrespective of the data i passed for values.

cluster.AddHelmChart("albHelm", new HelmChartOptions 
            {
                Namespace = "kube-system",
                Repository = "https://aws.github.io/eks-charts",
                Chart = "aws-load-balancer-controller",
                Release = "aws-load-balancer-controller",
                Values = new Dictionary<string, object> {
                    ["clusterName"] = cluster.ClusterName,
                    ["serviceAccount.create"] = false,
                    ["serviceAccount.name"] = "aws-load-balancer-controller-test",
                },
                Wait = true,
                Timeout = Duration.Minutes(15)
            });

Environment

  • CDK CLI Version: 1.73.0
  • Node.js Version: v14.15.0
  • OS: Windows 10
  • Language (Version): C#

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
ffranco-audoracommented, Jun 5, 2021

I was having the same problem (in typscript). It turned out the values should be passed as an object:

cluster.addHelmChart('AWS LoabBalancer Controller', {
  repository: 'https://aws.github.io/eks-charts',
  chart: 'aws-load-balancer-controller',
  namespace: 'kube-system',
  values: {
    clusterName: cluster.clusterName,
    serviceAccount: {
      create: false,
      name: lbControllerSa.serviceAccountName
    }
  }
});
0reactions
github-actions[bot]commented, Dec 17, 2020

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Amazon EKS Construct Library - AWS Documentation
Helm charts will be installed and updated using helm upgrade --install , where a few parameters are being passed down (such as repo...
Read more >
Extensibility - Amazon EKS Blueprints Quick Start
Here is an example of a secret volume and volume mount passed as values to a Helm chart: const chart = this.addHelmChart ......
Read more >
AWS CDK for EKS — Handling Helm Charts - ITNEXT
The helm template command is very handy to verify the output of helm chart templates and values. This output can be applied directly...
Read more >
circleci/aws-eks@2.2.0
no -output-timeout. Elapsed time that the cluster creation command can run on CircleCI without output. The string is a decimal with unit suffix, ......
Read more >
How to install AWS Load Balancer Controller in a CDK project
Install the TargetGroupBinding CRDs if upgrading the chart via helm upgrade. kubectl apply -k "github.com/aws/eks-charts/stable/aws-load- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found