mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 10:58:44 +00:00
Update cheatsheets
This commit is contained in:
25
kubectx
Normal file
25
kubectx
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# kubectx
|
||||
|
||||
> Utility to manage and switch between `kubectl` contexts.
|
||||
> More information: <https://github.com/ahmetb/kubectx>.
|
||||
|
||||
- List the contexts:
|
||||
|
||||
`kubectx`
|
||||
|
||||
- Switch to a named context:
|
||||
|
||||
`kubectx {{name}}`
|
||||
|
||||
- Switch to the previous context:
|
||||
|
||||
`kubectx -`
|
||||
|
||||
- Delete a named context:
|
||||
|
||||
`kubectx -d {{name}}`
|
||||
Reference in New Issue
Block a user