Created
June 20, 2019 19:23
-
-
Save mnolascor/5356220af18c999a99773edbf12e4d09 to your computer and use it in GitHub Desktop.
Script que permite visualizar y cambiar contextos entre los diferentes clústeres.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Función y alias para visualizar contextos | |
function Ver-Contextos { | |
kubectl config get-contexts | |
} | |
Set-Alias -Name verc -Value Ver-Contextos | |
# Función y alias para cambiar de contexto | |
function cambiarContexto-dev01 { | |
kubectl config use-context AKSAKSDEV01 | |
} | |
Set-Alias -Name dev01 -Value cambiarContexto-dev01 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment