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

An argument named "limits" is not expected here. Did you mean to define a │ block of type "limits"? #10

Open
leiarenee opened this issue Aug 15, 2021 · 1 comment

Comments

@leiarenee
Copy link


│ Error: Unsupported argument

│ on .terraform/modules/cluster_autoscaler/main.tf line 184, in resource "kubernetes_deployment" "cluster_autoscaler":
│ 184: limits = {

│ An argument named "limits" is not expected here. Did you mean to define a
│ block of type "limits"?


│ Error: Unsupported argument

│ on .terraform/modules/cluster_autoscaler/main.tf line 188, in resource "kubernetes_deployment" "cluster_autoscaler":
│ 188: requests = {

│ An argument named "requests" is not expected here. Did you mean to define a
│ block of type "requests"?

ERRO[0042] 1 error occurred:
* exit status 1

When I correct the line 183 to :
resources{
limits {
cpu = "100m"
memory = "512Mi"
}
requests {
cpu = "100m"
memory = "512Mi"
}
}
It is correctly installed.

Kubernetes provider version: 1.13.3
AWS Provider version: 3.54

@milanflowcast
Copy link

milanflowcast commented Aug 30, 2021

@leiarenee I have hit the same problem. The solution in my case was to upgrade kubernetes provider kubernetes = ">= 2.0" in versions.tf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants