Difference between revisions of "Terraform resource: rancher2 project"
Jump to navigation
Jump to search
Line 45: | Line 45: | ||
* {{Rancher}} | * {{Rancher}} | ||
+ | [[Category:Rancher]] | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 11:34, 16 February 2024
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" } }
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" {
See also[edit]
- Terraform Rancher:
rancher2_project, rancher2_project_role_template_binding
- Rancher, RancherOS, Rancher Server, Rancher Desktop, Rancher Webhook,
rancher config, k3d, k3s, Klipper, RKE
, Harvester, Longhorn,rancher-agent
, Rancher authentication providers,cattle.io
, ACE, Norman, rancher-backup,versions
, Rancher Manager and Cluster API (CAPI), Ingress configuration, Terraform Rancher
Advertising: