Skip to content

aliases-kubectl¤

Short alias functions for kubectl commands. Provides 790+ aliases following a consistent naming convention, plus helper functions for context management, pod operations, and secret decoding.

Module Info

Version: 0.11.4 (beta) · PowerShell: 7.3+ · Dependencies: none

./module_manage.ps1 'aliases-kubectl' -CleanUp

Highlights¤

  • Composable pattern - 7 verb prefixes x 8 resource suffixes x output modifiers generate the full alias set from a handful of rules.
  • Context & namespace switching - kcuctx / kcsctxcns with tab-completed cluster names, contexts, and namespaces.
  • Pod operations - kex to exec into a container, kdbg to debug a pod, klo to tail logs - all with tab completion for pod names and containers.
  • Secret decoding - Get-KubectlSecretDecodedData decodes base64 secret data in one call.
  • Version matching - Set-KubectlLocal downloads a kubectl binary matching your cluster's server version.

Pages¤

  • Naming Conventions - composable alias pattern explained
  • Aliases - core operations, resource aliases, and module aliases
  • Helpers - version management, context switching, pod operations, secrets
  • Completers - tab-completion for clusters, contexts, pods, namespaces, secrets