Last active
August 21, 2019 00:33
-
-
Save thiagotn/8813882cd1b0fc20cd2628c9809091ff to your computer and use it in GitHub Desktop.
kubectl commands
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
-- consulta de eventos | |
kubectl get events --sort-by='.lastTimestamp' | |
-- consulta de flavor de namespace | |
kubectl describe ns | |
-- atualizando o namespace de contexto | |
kubectl config set-context development-br-sp1-a --namespace=pp-oauth-hub | |
-- consultando o nome do contexto atual | |
kubectl config view -o jsonpath='{.current-context}' | |
-- consultando o nome do namespace atual | |
kubectl config view --minify --output 'jsonpath={..namespace}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment