You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#CustomerIntent: As a cluster operator, I want to obtain cost management information, perform cost attribution, and improve my cluster footprint
13
13
---
@@ -50,21 +50,8 @@ The AKS cost analysis addon is built on top of [OpenCost](https://www.opencost.i
50
50
51
51
* AKS Automatic is not supported at this time.
52
52
53
-
* If using the Azure CLI, you must have version `2.44.0` or later installed, and the `aks-preview` Azure CLI extension version `0.5.155` or later installed.
53
+
* If using the Azure CLI, you must have version `2.61.0` or later installed.
54
54
55
-
### Install or update the `aks-preview` Azure CLI extension
56
-
57
-
Install the `aks-preview` Azure CLI extension using the [`az extension add`][az-extension-add] command.
58
-
59
-
```azurecli-interactive
60
-
az extension add --name aks-preview
61
-
```
62
-
63
-
If you need to update the extension version, you can do this using the [`az extension update`][az-extension-update] command.
64
-
65
-
```azurecli-interactive
66
-
az extension update --name aks-preview
67
-
```
68
55
69
56
## Enable cost analysis on your AKS cluster
70
57
@@ -83,13 +70,7 @@ You can enable the cost analysis with the `--enable-cost-analysis` flag during o
83
70
The following example creates a new AKS cluster in the `Standard` tier with cost analysis enabled:
84
71
85
72
```azurecli-interactive
86
-
az aks create \
87
-
--resource-group <resource-group> \
88
-
--name <cluster-name> \
89
-
--location <location> \
90
-
--tier standard \
91
-
--enable-cost-analysis \
92
-
--generate-ssh-keys
73
+
az aks create --resource-group <resource-group> --name <cluster-name> --location <location> --enable-managed-identity --generate-ssh-keys --tier standard --enable-cost-analysis
93
74
```
94
75
95
76
The following example updates an existing AKS cluster in the `Standard` tier to enable cost analysis:
@@ -99,7 +80,9 @@ az aks update --resource-group <resource-group> --name <cluster-name> --enable-c
99
80
```
100
81
101
82
> [!WARNING]
102
-
> The AKS cost analysis addon Memory usage is dependent on the number of containers deployed. Memory consumption can be roughly approximated by 200MB + 0.5MB per Container. The current memory limit is set to 4GB which will support approximately 7000 containers per cluster but could be more or less depending on various factors. These estimates are subject to change.
83
+
> The AKS cost analysis add-on Memory usage is dependent on the number of containers deployed. Memory consumption can be roughly approximated by 200 MB + 0.5 MB per container. The current memory limit is set to 4 GB which will support approximately 7000 containers per cluster. These estimates could be more or less depending on various factors and are subject to change.
84
+
>
85
+
> If you are experiencing issues such as the add-on pod getting `OOMKilled` or stuck in a `Pending` state, refer to the [AKS cost analysis add-on issues](/troubleshoot/azure/azure-kubernetes/aks-cost-analysis-add-on-issues) troubleshooting guide.
103
86
104
87
## Disable cost analysis
105
88
@@ -110,7 +93,7 @@ az aks update --name myAKSCluster --resource-group myResourceGroup --disable-cos
110
93
```
111
94
112
95
> [!NOTE]
113
-
> If you intend to downgrade your cluster from the `Standard` or `Premium` tiers to the `Free` tier while cost analysis is enabled, you must first explicitly disable cost analysis as shown here.
96
+
> If you intend to downgrade your cluster from the `Standard` or `Premium` tiers to the `Free` tier while cost analysis is enabled, you must first explicitly disable cost analysis.
114
97
115
98
## View the cost data
116
99
@@ -138,4 +121,4 @@ See the following guide to troubleshoot [AKS cost analysis add-on issues](/troub
138
121
139
122
## Learn more
140
123
141
-
Visibility is one element of cost management. Refer to [Optimize Costs in Azure Kubernetes Service (AKS)](./best-practices-cost.md) for other best practices on how to gain control over your kubernetes cost.
124
+
Visibility is one element of cost management. Refer to [Optimize Costs in Azure Kubernetes Service (AKS)](./best-practices-cost.md) for other best practices on how to gain control over your kubernetes cost.
0 commit comments