datarootsio / terraform-module-kubeflow

Kubeflow deployment purely in Terraform
MIT License
19 stars 10 forks source link

Can't get rid of istio error when running 'terraform plan' #37

Open kreesan-m-23 opened 3 years ago

kreesan-m-23 commented 3 years ago

Error: Unsupported block type

on .terraform\modules\kubeflow\istio\operator.tf line 72, in resource "kubernetes_deployment" "istio_operator": 72: limits {

Blocks of type "limits" are not expected here. Did you mean to define argument "limits"? If so, use the equals sign to assign it a value.

Error: Unsupported block type

on .terraform\modules\kubeflow\istio\operator.tf line 77, in resource "kubernetes_deployment" "istio_operator": 77: requests {

Blocks of type "requests" are not expected here. Did you mean to define argument "requests"? If so, use the equals sign to assign it a value.

bharath-krishna commented 2 years ago

I got it working by adding = sign before limits and requests as here

     resources {
       limits = {
         cpu    = "200m"
         memory = "256Mi"
       }

       requests = {
         cpu    = "50m"
         memory = "128Mi"
       }
     }