Skip to content

Commit

Permalink
Update README with new vertical format
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Dresser <[email protected]>
  • Loading branch information
michaelmdresser committed Mar 1, 2023
1 parent 805690f commit 33ab7c2
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ of any Kubernetes workload.
now with `kubectl cost predict -f your-deployment.yaml`:

```
+-------------------------------------+------------+-----------+----------+------------+
| WORKLOAD | Δ CPU/MO | Δ MEM/MO | Δ GPU/MO | Δ TOTAL/MO |
+-------------------------------------+------------+-----------+----------+------------+
| default/deployment/test1-deployment | 209.47 USD | 18.72 USD | 0.00 USD | 228.19 USD |
+-------------------------------------+------------+-----------+----------+------------+
OBJECT Δ QTY RESOURCE UNIT COST PER UNIT Δ COST/MO % CHANGE
────────────────────────────────────────────────────────────────────────────────────────────
kubecost1 deployment -92 CPU millicores 0.023 USD -2.14 USD -92.00%
kubecost1-cost-analyzer
-172.65 RAM MiB 0.0030 USD -0.53 USD -43.38%
```


Expand Down Expand Up @@ -145,11 +145,14 @@ echo "$DEF" | kubectl cost predict -f -
```
Example output:
```
+---------------------------------------+------------+-----------+----------+------------+
| WORKLOAD | Δ CPU/MO | Δ MEM/MO | Δ GPU/MO | Δ TOTAL/MO |
+---------------------------------------+------------+-----------+----------+------------+
| michaelkc/deployment/nginx-deployment | 209.47 USD | 18.72 USD | 0.00 USD | 228.18 USD |
+---------------------------------------+------------+-----------+----------+------------+
OBJECT Δ QTY RESOURCE UNIT COST PER UNIT Δ COST/MO % CHANGE
────────────────────────────────────────────────────────────────────────────────────────
michaelkc deployment +9 CPU cores 23.27 USD +209.47 USD
nginx-deployment
+6 RAM GiB 3.12 USD +18.72 USD
────────────────────────────────────────────────────────────────────────────────────────
TOTAL MONTHLY COST CHANGE +228.18 USD
```

Show how much each namespace cost over the past 5 days
Expand Down

0 comments on commit 33ab7c2

Please sign in to comment.