Powershell native implementation of kubectx and kubens with autocomplete
Install it with
Install-Module PSKubeContext
To utilize it, simply add the following to your profile:
Import-Module PSKubeContext
Set-Alias kubens -Value Select-KubeNamespace
Set-Alias kubectx -Value Select-KubeContext
Register-PSKubeContextComplete
Select-KubeContext
or if you prefer aliaskubectx
Select-KubeNamespace
orkubens
- 100% autocomplete using 🙈🙉🙊
- A menu in command line to select the context/namespace if something goes wrong 😅
Check this YouTube video: https://www.youtube.com/embed/_6XjdLD0TWo