To get information about add-on use the following data huaweicloud_cce_addon_template
.
Example for metrics-server
add-on
data "huaweicloud_cce_addon_template" "test" {
cluster_id = var.cce_cluster_id
name = "metrics-server"
version = "1.3.2"
}
output "version" {
value = data.huaweicloud_cce_addon_template.test
}
Name | Version |
---|---|
terraform | ~> 1.7 |
huaweicloud | ~>1.63 |
Name | Version |
---|---|
huaweicloud | ~>1.63 |
No modules.
Name | Type |
---|---|
huaweicloud_cce_addon.metrics_server | resource |
huaweicloud_cce_addon.nginx_ingress | resource |
huaweicloud_availability_zones.zones | data source |
huaweicloud_cce_cluster.cluster | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
cluster_id | Specifies the CCE cluster ID | string |
n/a | yes |
metrics_server | Enabler for metric server addon | bool |
false |
no |
metrics_server_replicas | Number of replicas for metric server | string |
"1" |
no |
metrics_server_resources | n/a | object({ |
{} |
no |
metrics_server_version | Version of metric server addon | string |
"1.3.2" |
no |
nginx_ingress | Enabler for nginx Ingress addon | bool |
false |
no |
nginx_ingress_config | Use the Nginx Configuration options https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#configuration-options | map(string) |
{ |
no |
nginx_ingress_default_backend | Nginx Ingress default backend configuration | object({ |
{} |
no |
nginx_ingress_elb_auto_create | ELB Autocreate annotations, https://support.huaweicloud.com/intl/en-us/usermanual-cce/cce_01_0014.html | object({ |
{} |
no |
nginx_ingress_elb_auto_create_az_number | Number of AZ for auto-created ELB if nginx_ingress_elb_auto_create.available_zone is empty | number |
1 |
no |
nginx_ingress_elb_id | Network Load balancer ID, if 'null' ELB Autocreate will use | string |
null |
no |
nginx_ingress_extra_annotations | Extra annotations for Nginx service https://support.huaweicloud.com/intl/en-us/usermanual-cce/cce_01_0014.html | map(string) |
{ |
no |
nginx_ingress_replicas | Number of replicas for nginx Ingress | number |
1 |
no |
nginx_ingress_resources | n/a | object({ |
{} |
no |
nginx_ingress_version | Version of nginx Ingress addon | string |
"2.1.3" |
no |
region | Specifies the region in which to create the CCE node pool resource, if omitted, the provider-level region will be used | string |
null |
no |
Name | Description |
---|---|
metrics_server_id | ID of the Add-on Metrics Server instance |
metrics_server_status | Add-on Metrics Server status information |