AKS icon indicating copy to clipboard operation
AKS copied to clipboard

[BUG] Unable to disable prometheus stack on cluster after adding azure container storage extension.

Open muadnan opened this issue 1 year ago • 6 comments

Describe the bug Unable to disable prometheus stack on cluster on which prometheus is already deployed after adding azure container storage extension.

To Reproduce Steps to reproduce the behavior:

  1. Enable azureContainerStorage extension.
  2. Disable prometheus stack using: az k8s-extension update --cluster-type managedClusters --cluster-name <cluster_name> --resource-group <resource_group_name> --name azurecontainerstorage --config base.metrics.enablePrometheusStack=false

Expected behavior Prometheus stack should be removed and all resources should be deleted including CRD's.

Environment (please complete the following information):

  • CLI Version 2.67.0
  • Kubernetes version 1.31.2

Additional context There should be an option to disable prometheus stack while enabling azure container storage.

muadnan avatar Jan 10 '25 14:01 muadnan

@muadnan , clarifying question - if the above command is being used to disable customer's own Prometheus instance or Azure Container Storage's Prometheus stack? The command is purposed to do the later.

saurabh0501 avatar Jan 16 '25 14:01 saurabh0501

@muadnan , clarifying question - if the above command is being used to disable customer's own Prometheus instance or Azure Container Storage's Prometheus stack? The command is purposed to do the later.

@saurabh0501 The above command is used to disable the kubePrometheusStack deployed by azureContainerStorage as mentioned in the documentation: https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/storage/container-storage/enable-monitoring.md

muadnan avatar Jan 16 '25 19:01 muadnan

@muadnan , clarifying question - if the above command is being used to disable customer's own Prometheus instance or Azure Container Storage's Prometheus stack? The command is purposed to do the later.

@saurabh0501 when I changed the config parameter base.metrics.enablePrometheusStack=false it is not actually reflected on the deployed helm release on the AKS. I tried changing other parameter: base.metrics.metricsExporter.enabled=false it is working fine. So, there is a bug due to which base.metrics.enablePrometheusStack=false not reflecting on deployed release of azureContainerStorage.

muadnan avatar Jan 23 '25 06:01 muadnan

@olsenme @muadnan, we are currently working on a fix for this issue. We have root-caused the issue, and the fix will be available as part of the Azure Container Storage's next release. I will share more details once I have the plan available for our next release.

saurabh0501 avatar Feb 03 '25 23:02 saurabh0501

reopen

muadnan avatar Mar 13 '25 08:03 muadnan

I have the same issue. I dont want the prometheus service from azurecontainerstorage but am not able to either disable it on installation or removing it afterwards

torbenstruever avatar Mar 21 '25 14:03 torbenstruever