Terraform resource: rancher2 project

From wikieduonline
Revision as of 11:34, 16 February 2024 by Welcome (talk | contribs)
Jump to navigation Jump to search

https://registry.terraform.io/providers/rancher/rancher2/latest/docs/resources/project

  • Terraform resource: rancher2 project


# Create a new rancher2 Project
resource "rancher2_project" "foo" {
  name = "foo"
  cluster_id = "<CLUSTER_ID>"
  resource_quota {
    project_limit {
      limits_cpu = "2000m"
      limits_memory = "2000Mi"
      requests_storage = "2Gi"
    }
    namespace_default_limit {
      limits_cpu = "2000m"
      limits_memory = "500Mi"
      requests_storage = "1Gi"
    }
  }
  container_resource_limit {
    limits_cpu = "20m"
    limits_memory = "20Mi"
    requests_cpu = "1m"
    requests_memory = "1Mi"
  }
}


kube-proxy

Error: Bad response statusCode [422]. Status [422 Unprocessable Entity]. Body: [baseType=error, code=MaxLimitExceeded, 
fieldName=resourceQuota, message=is below the used limit on fields: 
limitsCpu=119,limitsMemory=135Gi,requestsCpu=112500m,requestsMemory=11024Mi] from [https:xxxx=true]
│ 
│   with module.yourmodule-EKS.module.rancher-projects[0].module.rancher-project["project_name_1"].rancher2_project.rancher-project,
│   on .terraform/modules/yourmodule/modules/rancher-projects/rancher-project/main.tf line 11, in resource "rancher2_project" "rancher- 
project":
│   11: resource "rancher2_project" "rancher-project" {


Advertising: