rancher / terraform-provider-rancher2

Terraform Rancher2 provider
https://www.terraform.io/docs/providers/rancher2/
Mozilla Public License 2.0
260 stars 223 forks source link

Document alternative to deprecated enable_cluster_monitoring in rancher 2.5 #644

Open jmatsushita opened 3 years ago

jmatsushita commented 3 years ago

Hello there,

Given that Monitoring in Cluster Manager has been deprecated as of Rancher v2.5.0 I suppose that the recommended way to deploy monitoring is through a rancher2_app_v2 instead of enable_cluster_monitoring? If so maybe it would be a nice addition to the documentation?

Cheers,

Jun

rawmind0 commented 3 years ago

Hi @jmatsushita , the v1 monitoring is not deprecated. There is a limitation with new versions that is noted at provider docs, https://registry.terraform.io/providers/rancher/rancher2/latest/docs/resources/cluster#creating-rancher-v2-rke-cluster-enabling-and-customizing-monitoring , but both options are available . Also, at rancher docs both monitoring options are explained, https://rancher.com/docs/rancher/v2.x/en/cluster-admin/tools/

jmatsushita commented 3 years ago

I see, so this message image

is only related to the Cluster Manager interface? When using enable_cluster_monitoring in Rancher 2.5 it will install the monitoring chart and make it available in the Cluster Explorer?

rawmind0 commented 3 years ago

Nope, monitoring v1 is for cluster manager ui and monitoring v2 is for cluster explorer. We are migrating to v2 but v1 is still available

jmatsushita commented 3 years ago

Ok good to know. Not to be pendantic, but the message says that in Rancher 2.5 monitoring v1 is deprecated. It might still be possible to use both v1 and v2, but I think that this terraform module documentation should reflect that v1 monitoring is deprecated (from 2.5). :) For instance something like:

With rancher until 2.4, you can use the enable_cluster_monitoring and cluster_monitoring_input for v1 monitoring. However, from rancher 2.5, this method is deprecated in favor of using rancher2_app_v2 terraform resource together with the rancher-monitoring operator helm chart (see example usage).

jmatsushita commented 3 years ago

These examples for rancher2_app_v2 are more detailed and include logging and other rancher certified apps. https://github.com/rancher/terraform-provider-rancher2/blob/master/docs/guides/apps_marketplace.md