Skip to content
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] Cannot create namespaces when trying to add helm chart to an EKS cluster #7209

Closed
farshadniayeshpour opened this issue Apr 6, 2020 · 1 comment
Assignees
Labels
@aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service bug This issue is a bug. duplicate This issue is a duplicate.

Comments

@farshadniayeshpour
Copy link

farshadniayeshpour commented Apr 6, 2020

When I try to add a helm chart to a cluster, there seems to be a problem with creating a new namespace. I get this error when trying to add helm to a kubernetes cluster in python with both the construct eks.HelmChart() and cluster method like cluster.add_chart()

Reproduction Steps

eks_cluster.add_chart(id="nginx-ingress-0406", chart="nginx-ingress", namespace="nginx", repository="https://kubernetes-charts.storage.googleapis.com", wait=True)

eks_cluster.add_chart(id="airflow-0406", chart="airflow", namespace="default", repository="https://kubernetes-charts.storage.googleapis.com", wait=True)

or

chart = eks.HelmChart(self, f"{chart_name}-{self.ENVIRONMENT}", cluster=cluster, chart=chart_name, namespace=ns, release=f'helm-chart-{release}-{self.ENVIRONMENT}', repository=repo, values=vals)

Error Log

Failed to create resource. Error: b'Release "nonprodrptclusternonprodchartnginxingress0406e3cf6676" does not exist. Installing it now.\nError: create: failed to create: namespaces "nginx" not found\n' at invokeUserFunction (/var/task/framework.js:85:19) at process._tickCallback (internal/process/next_tick.js:68:7)

Environment

  • CLI Version :
  • Framework Version:
  • OS :
  • Language :

Other

image


This is 🐛 Bug Report

@farshadniayeshpour farshadniayeshpour added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 6, 2020
@SomayaB SomayaB added the @aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service label Apr 9, 2020
@eladb
Copy link
Contributor

eladb commented Apr 12, 2020

Duplicate #7216

@eladb eladb closed this as completed Apr 12, 2020
@SomayaB SomayaB added duplicate This issue is a duplicate. and removed needs-triage This issue or PR still needs to be triaged. labels Jun 29, 2020
mergify bot pushed a commit that referenced this issue Jun 30, 2020
chore(eks): support create namespace with helm 

- add `createNamespace` property for `eks.HelmChart`
- set the `wait` flag correctly for HelmChart custom resource

Fixes: #7216 #7209 #8713

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@iliapolo iliapolo changed the title Cannot create namespaces when trying to add helm chart to an EKS cluster [aws-eks] Cannot create namespaces when trying to add helm chart to an EKS cluster Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service bug This issue is a bug. duplicate This issue is a duplicate.
Projects
None yet
Development

No branches or pull requests

4 participants