Skip to content

Instantly share code, notes, and snippets.

@vlobachev
Last active January 30, 2023 19:58
Show Gist options
  • Select an option

  • Save vlobachev/87265eacb1537527a0f11abd468567bd to your computer and use it in GitHub Desktop.

Select an option

Save vlobachev/87265eacb1537527a0f11abd468567bd to your computer and use it in GitHub Desktop.
AWS EKS Cost optimisation
https://aws.amazon.com/blogs/containers/cost-optimization-for-kubernetes-on-aws/
https://docs.aws.amazon.com/eks/latest/userguide/cost-monitoring.html
To find all local storages:
kubectl get pods --all-namespaces -o=json | jq -c '.items[] | {name: .metadata.name, namespace: .metadata.namespace, claimName: .spec | select( has ("volumes") ).volumes[] | select( has ("persistentVolumeClaim") ).persistentVolumeClaim.claimName }'
Istio resources:
kubectl -n istio-system get istiooperators.install.istio.io installed-state -o json | jq .spec.values.global.proxy.resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment