Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
thisurawijesekera opened this issue Oct 2, 2024 · 1 comment

Comments

@thisurawijesekera
Copy link

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
Copy link
Author

Hello @AleksandrTitov,

Any idea on this issue?
Thanks

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

No branches or pull requests

1 participant