Session
Making Kubectl PowerShell friendly (no Crescendo, no JSON)
Kubectl is the purpose written tool for managing Kubernetes clusters. Thankfully Kubectl has an autocompletion script for PowerShell, but beyond that, it doesn't integrate well with PowerShell. In fact, the recommended way to integrate with PowerShell's pipeline is to write a long statement that ends with ConvertFrom-Json.
There are several solutions to this problem, most notably you could use Crescendo. However, using Crescendo creates a PowerShell module that creates unique commands and doesn't give you skills in Kubectl, the tool being wrapped.
In this session, I want to introduce you to my solution to this problem. A way that you can both make Kubectl generate objects that can be sent down the pipeline and keep you up to speed on how Kubectl functions so you are able to use Kubectl effectively even in a bash shell.
After we cover my opinions on why this solution is relevant, we'll walk through all of the technical details of how. This includes the specifics of generating PowerShell formats on the fly and an elegant way of parsing Kubectl output without losing data or adding noticeable lag.
To wrap up, we'll take a look at a few examples of filtering left with Kubectl to really drive home the power of Kubectl and encourage you to avoid Where-Object where possible.

Anthony Howell
Cloud Platform Architect, Evolent Health
Eugene, Oregon, United States
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top