disast.rs :: journal

Dayjob

A useful page for my dayjob

Powershell

 
 
# Writing debug output without polluting stdout 
 $DebugPreference = "Continue" # show debug messages 
 Write-Debug "some text" # outputs "DEBUG: some text" 
 Write-Debug "`r##[debug]useful for azure pipelines too" 
 

Kubectl

 
 # requires kube-capacity plugin 
 kubectl resource-capacity # show node request/limits 
 kubectl resource-capacity -p # as above, with workloads 
 kubectl resource-capacity -p --node-labels 'abcde' # for node labeled abcde 
 

demo.html ::