terraform-provider-alicloud icon indicating copy to clipboard operation
terraform-provider-alicloud copied to clipboard

alicloud_cs_managed_kubernetes sls_project_name in logtail-ds in addons

Open eyltl opened this issue 2 years ago • 2 comments

Terraform Version

terraform version 1.2.4 aliyun/alicloud ver 1.182.0

Affected Resource(s)

Please list the resources as a list, for example: alicloud_cs_managed_kubernetes

Terraform Configuration Files

variable "cluster_addons" { type = list(object({ name = string config = string })) default = [ { "name" = "logtail-ds", "config" = "{"IngressDashboardEnabled":"true","sls_project_name":"project"}", }, ] }

Expected Behavior

cluster should create the logtail-ds with the right project , but instead its create it using the generic k8s-log

Actual Behavior

cluster still create a sls project in format k8s-log-. and configmap alibaba-log-configuration still use k8s-log- as sls project.

eyltl avatar Sep 05 '22 09:09 eyltl

@EyalZafrani when you provision ack cluster, you can specify sls project to be used for the control plane logs https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/cs_managed_kubernetes#control_plane_log_project.

the clsuter addons are used for apps logging

jiangytcn avatar Sep 14 '22 05:09 jiangytcn

Hi the problem is with logtail-ds its ignoring the project provided to the addon & during creation

eyltl avatar Sep 18 '22 13:09 eyltl