Skip to content
/ gil Public

CLI to retrieve pods costs based on AWS node types

License

Notifications You must be signed in to change notification settings

vsantos/gil

Repository files navigation

Gil

Command Line Interface

./gil price \
    --namespace $my-namespace \
    -l key1=value1 \
    # the region where the prices base will be fetch (price could differ from region to region)
    --region sa-east-1 \
    # where to include associated pods from a deployment along with it's individual cost
    --show-pods | jq

Limitations

Due to lack of go routines this application will not scale well when fetching resources within a particular cluster. For now the best way possible to use the binary is to reduce the search scope with a granular --label-selector.

You can also compose a bash command to help with scraping:

NAMESPACE=foo
for l in $(kubectl get deployment -n $NAMESPACE --show-labels --no-headers | awk '{print $6}' | cut -d ',' -f2); do 
  ./gil price -n $NAMESPACE -l $l --show-pods | jq
done

About

CLI to retrieve pods costs based on AWS node types

Resources

License

Stars

Watchers

Forks

Packages

No packages published