cloud-labs-infra / terraform-huaweicloud-cce-addons

Mozilla Public License 2.0
0 stars 1 forks source link

kubernetes.io/elb.id and loadBalancerIP cannot both be empty #7

Open thisurawijesekera opened 1 month ago

thisurawijesekera commented 1 month ago

Getting below error

╷ │ Error: error creating CCE add-on: Bad request with: POST [https://7f4e5fa4-805d-11ef-95e0-0255ac10003e.cce.***.myhuaweicloud.com/api/v3/addons], request_id: c136a8628b343742b8edf9d919ae38d9, error message: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","code":400,"errorCode":"CCE.03400001","errorMessage":"Invalid request.","error":{"message":"kubernetes.io/elb.id and loadBalancerIP cannot both be empty","code":"SVCSTG.CCE-ADDONMGR.4000002"},"message":"kubernetes.io/elb.id and loadBalancerIP cannot both be empty","reason":"BadRequest"} │ │ │ with module.cce-addons.huaweicloud_cce_addon.nginx_ingress[0], │ on .terraform/modules/cce-addons/main.tf line 41, in resource "huaweicloud_cce_addon" "nginx_ingress": │ 41: resource "huaweicloud_cce_addon" "nginx_ingress" { │

Here is how I used the module module "cce-addons" { source = "cloud-labs-infra/cce-addons/huaweicloud" version = "1.2.0" cluster_id = module.k8s_cluster.id metrics_server = true metrics_server_version = var.metrics_server_version nginx_ingress = true nginx_ingress_version = var.nginx_ingress_version region = var.region nginx_ingress_elb_auto_create = { type = "public" } nginx_ingress_default_backend = { enable = true service = "backend-service" } depends_on = [module.k8s_node_pool] # Ensure cce-addons depends on k8s_node_pool }

thisurawijesekera commented 1 month ago

Hello @AleksandrTitov,

Any idea on this issue? Thanks