astroctl infra kubernetes cost allocation
Show usage and cost grouped by namespace, application, or node group
Terminal
astroctl infra kubernetes cost allocation [cluster-name] [flags]
Examples
Terminal
astroctl infra k8s cost allocation -c my-cluster --group-by Namespace --window 24h
astroctl infra k8s cost allocation my-cluster --group-by Application --window 7d
astroctl infra k8s cost allocation my-cluster --group-by Application --search checkout --limit 100
Options
Terminal
--application string application name (requires --group-by Application)
--currency string ISO 4217 currency for cost sorting; mixed currencies otherwise sort by name
--group-by string allocation dimension: Namespace, Application, or NodeGroup (default "Namespace")
-h, --help help for allocation
--limit int page size from 1 through 200 (default 50)
-o, --output string Output format (table|wide|json|yaml) (default "table")
--page-token string opaque nextPageToken from a previous result
--search string case-insensitive allocation name search
--sort-by string sort by Cost, Name, CPU, RAM, Storage, GPU, or Efficiency (default "Cost")
--sort-order string sort direction: Ascending or Descending (default Ascending for Name, Descending otherwise)
--window string closed-hour window (for example 24h, 7d, 30d) (default "24h")
Options inherited from parent commands
Terminal
-c, --cluster-name string cluster name
SEE ALSO
- astroctl infra kubernetes cost - Show measured Kubernetes resource usage and cost