[feature] add kubectl alias

This commit is contained in:
Klesh Wong 2020-07-27 10:41:32 +08:00
parent 4f59efb1c2
commit 1f62fdc617

View File

@ -5,6 +5,15 @@
Set-PSReadLineOption -EditMode Emacs
$Env:Path += ";$PSScriptRoot\bin"
Set-Alias -Name k kubectl
function kcc { k config get-contexts $args }
function kcu { k config use-context $args}
function kgd { k get deployment $args}
function ked { k edit deployment $args}
function kgp { k k get pod -o 'custom-columns=NAME:.metadata.name,IMG:.spec.containers[*].image,STATUS:.status.phase' $args}
function kl { k logs -f --all-containers $args}
function dp {
[CmdletBinding()]