Skip to content

Helpers¤

Helper functions for kubectl version management, context switching, pod operations, and secret decoding.

Version & Setup¤

Function Description
Get-KubectlVersion Full kubectl version info (client+server)
Get-KubectlClientVersion Client version string
Get-KubectlServerVersion Server version string
Set-KubectlLocal Download kubectl matching server version

Context Management¤

Function / Alias Description
Get-KubectlContext (kcgctx) List contexts
Set-KubectlContext (kcuctx) Switch context
Remove-KubectlContext (kcrmctx) Remove context

Namespace¤

Function / Alias Description
Set-KubectlContextCurrentNamespace (kcsctxcns) Set namespace
Set-KubensContextCurrentNamespace Set ns kubens

Pod Operations¤

Function / Alias Description
Connect-KubernetesContainer (kex) Exec into container
Debug-KubernetesPod (kdbg) Debug a pod
Get-KubectlPodContainers List pod containers
Get-KubectlPodLogs (klo) Get pod logs

API Resources¤

Function / Alias Description
Get-KubectlApiResourceShortNames (kapishorts) List resource shortnames

Secrets¤

Function Description
Get-KubectlSecretDecodedData Decode secret data