|
|
|
@ -12,7 +12,7 @@ plugins=(... kubectl) |
|
|
|
## Aliases |
|
|
|
## Aliases |
|
|
|
|
|
|
|
|
|
|
|
| Alias | Command | Description | |
|
|
|
| Alias | Command | Description | |
|
|
|
|:--------|:------------------------------------|:-------------------------------------------------------------------------------------------------| |
|
|
|
| :------- | :------------------------------------------------- | :----------------------------------------------------------------------------------------------- | |
|
|
|
| k | `kubectl` | The kubectl command | |
|
|
|
| k | `kubectl` | The kubectl command | |
|
|
|
| kca | `kubectl --all-namespaces` | The kubectl command targeting all namespaces | |
|
|
|
| kca | `kubectl --all-namespaces` | The kubectl command targeting all namespaces | |
|
|
|
| kaf | `kubectl apply -f` | Apply a YML file | |
|
|
|
| kaf | `kubectl apply -f` | Apply a YML file | |
|
|
|
@ -28,13 +28,14 @@ plugins=(... kubectl) |
|
|
|
| kdelf | `kubectl delete -f` | Delete a pod using the type and name specified in -f argument | |
|
|
|
| kdelf | `kubectl delete -f` | Delete a pod using the type and name specified in -f argument | |
|
|
|
| | | **Pod management** | |
|
|
|
| | | **Pod management** | |
|
|
|
| kgp | `kubectl get pods` | List all pods in ps output format | |
|
|
|
| kgp | `kubectl get pods` | List all pods in ps output format | |
|
|
|
|
|
|
|
| kgpl | `kgp -l` | Get pods by label. Example: `kgpl "app=myapp" -n myns` | |
|
|
|
|
|
|
|
| kgpn | `kgp -n` | Get pods by namespace. Example: `kgpn kube-system` | |
|
|
|
|
|
|
|
| kgpsl | `kubectl get pods --show-labels` | List all pods in ps output format with labels | |
|
|
|
| kgpw | `kgp --watch` | After listing/getting the requested object, watch for changes | |
|
|
|
| kgpw | `kgp --watch` | After listing/getting the requested object, watch for changes | |
|
|
|
| kgpwide | `kgp -o wide` | Output in plain-text format with any additional information. For pods, the node name is included | |
|
|
|
| kgpwide | `kgp -o wide` | Output in plain-text format with any additional information. For pods, the node name is included | |
|
|
|
| kep | `kubectl edit pods` | Edit pods from the default editor | |
|
|
|
| kep | `kubectl edit pods` | Edit pods from the default editor | |
|
|
|
| kdp | `kubectl describe pods` | Describe all pods | |
|
|
|
| kdp | `kubectl describe pods` | Describe all pods | |
|
|
|
| kdelp | `kubectl delete pods` | Delete all pods matching passed arguments | |
|
|
|
| kdelp | `kubectl delete pods` | Delete all pods matching passed arguments | |
|
|
|
| kgpl | `kgp -l` | Get pods by label. Example: `kgpl "app=myapp" -n myns` | |
|
|
|
|
|
|
|
| kgpn | `kgp -n` | Get pods by namespace. Example: `kgpn kube-system` | |
|
|
|
|
|
|
|
| | | **Service management** | |
|
|
|
| | | **Service management** | |
|
|
|
| kgs | `kubectl get svc` | List all services in ps output format | |
|
|
|
| kgs | `kubectl get svc` | List all services in ps output format | |
|
|
|
| kgsw | `kgs --watch` | After listing all services, watch for changes | |
|
|
|
| kgsw | `kgs --watch` | After listing all services, watch for changes | |
|
|
|
@ -90,6 +91,7 @@ plugins=(... kubectl) |
|
|
|
| kcp | `kubectl cp` | Copy files and directories to and from containers | |
|
|
|
| kcp | `kubectl cp` | Copy files and directories to and from containers | |
|
|
|
| | | **Node management** | |
|
|
|
| | | **Node management** | |
|
|
|
| kgno | `kubectl get nodes` | List the nodes in ps output format | |
|
|
|
| kgno | `kubectl get nodes` | List the nodes in ps output format | |
|
|
|
|
|
|
|
| kgnosl | `kubectl get nodes --show-labels` | List the nodes in ps output format with labels | |
|
|
|
| keno | `kubectl edit node` | Edit nodes resource from the default editor | |
|
|
|
| keno | `kubectl edit node` | Edit nodes resource from the default editor | |
|
|
|
| kdno | `kubectl describe node` | Describe node resource in detail | |
|
|
|
| kdno | `kubectl describe node` | Describe node resource in detail | |
|
|
|
| kdelno | `kubectl delete node` | Delete the node | |
|
|
|
| kdelno | `kubectl delete node` | Delete the node | |
|
|
|
|