AWS eks documentation change
Summary
Updated Kubecost documentation links to IBM resources, simplified prerequisites by removing Fargate node limitation, added Kubernetes version requirements, improved Helm installation instructions with version pinning, and adjusted command syntax/formatting
Security assessment
Changes focus on documentation accuracy, installation process improvements, and version compatibility. No explicit references to security vulnerabilities, patches, or security feature enhancements are present. Version pinning improves reliability but isn't directly security-related without CVE context
Diff
diff --git a/eks/latest/userguide/cost-monitoring-kubecost.md b/eks/latest/userguide/cost-monitoring-kubecost.md index 2e06bcf32..950fc23cb 100644 --- a//eks/latest/userguide/cost-monitoring-kubecost.md +++ b//eks/latest/userguide/cost-monitoring-kubecost.md @@ -17,2 +16,0 @@ Amazon EKS provides an AWS optimized bundle of Kubecost for cluster cost visibil -As a Kubernetes platform administrator and finance leader, you can use Kubecost to visualize a breakdown of Amazon EKS charges, allocate costs, and charge back organizational units such as application teams. You can provide your internal teams and business units with transparent and accurate cost data based on their actual AWS bill. Moreover, you can also get customized recommendations for cost optimization based on their infrastructure environment and usage patterns within their clusters. - @@ -23 +21 @@ Kubecost v2 introduces several major new features. [Learn more about Kubecost v2 -For more information about Kubecost, see the [Kubecost](https://guide.kubecost.com) documentation. +For more information about Kubecost, see the [Kubecost](https://www.ibm.com/docs/en/kubecost/self-hosted/2.x) documentation and [Frequently asked questions](./cost-monitoring-kubecost-bundles.html#cost-monitoring-faq). @@ -29 +27 @@ For more information about Kubecost, see the [Kubecost](https://guide.kubecost.c -Install Kubecost as an Amazon EKS Add-on and benefit from additional features at no additional cost with the Amazon EKS optimized Kubecost bundle. For more information, see [Kubecost v2](./cost-monitoring-kubecost-bundles.html#kubecost-v2). +Install Kubecost as an Amazon EKS Add-on and benefit from additional features at no additional cost with the _Amazon EKS optimized Kubecost bundle_. For more information, see [Kubecost v2](./cost-monitoring-kubecost-bundles.html#kubecost-v2). @@ -48 +46 @@ Learn how to [remove an EKS Add-on](./removing-an-add-on.html), such as Kubecost - * An existing Amazon EKS cluster. To deploy one, see [Get started with Amazon EKS](./getting-started.html). The cluster must have Amazon EC2 nodes because you can’t run Kubecost on Fargate nodes. + * An existing Amazon EKS cluster. To deploy one, see [Get started with Amazon EKS](./getting-started.html). @@ -53,0 +52,2 @@ Learn how to [remove an EKS Add-on](./removing-an-add-on.html), such as Kubecost + * Cluster version should be `1.21 (or higher)` and `1.31` is officially supported as of v2. Learn more at [Supported Kubernetes versions](https://www.ibm.com/docs/en/kubecost/self-hosted/2.x?topic=installation-environment#ariaid-title2). + @@ -56 +56,3 @@ Learn how to [remove an EKS Add-on](./removing-an-add-on.html), such as Kubecost - 1. Determine the version of Kubecost to install. You can see the available versions at [kubecost/cost-analyzer](https://gallery.ecr.aws/kubecost/cost-analyzer) in the Amazon ECR Public Gallery. For more information about the compatibility of Kubecost versions and Amazon EKS, see the [Environment Requirements](https://docs.kubecost.com/install-and-configure/install/environment) in the Kubecost documentation. + 1. Determine the version of Kubecost to install. You can see the available versions at [kubecost/cost-analyzer](https://gallery.ecr.aws/kubecost/cost-analyzer) in the Amazon ECR Public Gallery. For more information about the compatibility of Kubecost versions and Amazon EKS, see the [Environment Requirements](https://www.ibm.com/docs/en/kubecost/self-hosted/2.x?topic=installation-environment) in the Kubecost documentation. + + 2. Install Kubecost with the following command. Replace `KUBECOST_VERSION` with the value retrieved from ECR, such as `1.108.1`. @@ -58 +60 @@ Learn how to [remove an EKS Add-on](./removing-an-add-on.html), such as Kubecost - 2. Install Kubecost with the following command. Replace `kubecost-version` with the value retrieved from ECR, such as `1.108.1`. + export KUBECOST_VERSION="1.108.1" @@ -60 +62,3 @@ Learn how to [remove an EKS Add-on](./removing-an-add-on.html), such as Kubecost - helm upgrade -i kubecost oci://public.ecr.aws/kubecost/cost-analyzer --version kubecost-version \ + helm upgrade -i kubecost \ + oci://public.ecr.aws/kubecost/cost-analyzer \ + --version ${KUBECOST_VERSION} \ @@ -62 +66 @@ Learn how to [remove an EKS Add-on](./removing-an-add-on.html), such as Kubecost - -f https://raw.githubusercontent.com/kubecost/cost-analyzer-helm-chart/develop/cost-analyzer/values-eks-cost-monitoring.yaml + -f https://raw.githubusercontent.com/kubecost/cost-analyzer-helm-chart/refs/tags/v${KUBECOST_VERSION}/cost-analyzer/values-eks-cost-monitoring.yaml @@ -66 +70 @@ Kubecost releases new versions regularly. You can update your version using [hel -You can remove Kubecost from your cluster with the following commands. + * You can remove Kubecost from your cluster with the following commands. @@ -69 +73,2 @@ You can remove Kubecost from your cluster with the following commands. - kubectl delete ns kubecost + + kubectl delete namespace kubecost @@ -78 +83,5 @@ You can remove Kubecost from your cluster with the following commands. - kubectl get pods -n kubecost + + + + + kubectl get pods --namespace kubecost @@ -87 +97 @@ An example output is as follows. - 2. On your device, enable port-forwarding to expose the Kubecost dashboard. + 1. On your device, enable port-forwarding to expose the Kubecost dashboard. @@ -89 +99 @@ An example output is as follows. - kubectl port-forward --namespace kubecost deployment/kubecost-cost-analyzer 9090 + kubectl port-forward deployment/kubecost-cost-analyzer 9090 --namespace kubecost @@ -93 +103 @@ Alternatively, you can use the [AWS Load Balancer Controller](./aws-load-balance - 3. On the same device that you completed the previous step on, open a web browser and enter the following address. + 2. On the same device that you completed the previous step on, open a web browser and enter the following address. @@ -101 +111 @@ You see the Kubecost Overview page in your browser. It might take 5–10 minutes - 4. To track costs at a cluster level, tag your Amazon EKS resources for billing. For more information, see [Tagging your resources for billing](./eks-using-tags.html#tag-resources-for-billing). + 3. To track costs at a cluster level, tag your Amazon EKS resources for billing. For more information, see [Tagging your resources for billing](./eks-using-tags.html#tag-resources-for-billing).