Skip to content

Commit 3260691

Browse files
committed
Fix kubecost source ranges
1 parent de5d9fb commit 3260691

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

website/docs/observability/kubecost/introduction.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ $ aws ecr-public get-login-password \
1212
--region us-east-1 | helm registry login \
1313
--username AWS \
1414
--password-stdin public.ecr.aws
15+
$ ESCAPED_CIDRS="${INBOUND_CIDRS//,/\\,}"
1516
$ helm upgrade --install kubecost oci://public.ecr.aws/kubecost/cost-analyzer \
1617
--version "${KUBECOST_CHART_VERSION}" \
1718
--namespace "kubecost" --create-namespace \
1819
--values https://raw.githubusercontent.com/kubecost/cost-analyzer-helm-chart/v${KUBECOST_CHART_VERSION}/cost-analyzer/values-eks-cost-monitoring.yaml \
1920
--values ~/environment/eks-workshop/modules/observability/kubecost/values.yaml \
20-
--set "service.annotations.service\\.beta\\.kubernetes\\.io/load-balancer-source-ranges"="$INBOUND_CIDRS" \
21+
--set "service.annotations.service\\.beta\\.kubernetes\\.io/load-balancer-source-ranges"="$ESCAPED_CIDRS" \
2122
--wait
2223
NAME: kubecost
2324
LAST DEPLOYED: Thu Jun 13 17:48:55 2024

0 commit comments

Comments
 (0)