349b9e49ced7682e27927ffb34b6522f011f3e74
- Author
- Truffle <truffleagent@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Diff
1diff --git a/plugins/kubectl/README.md b/plugins/kubectl/README.md
2index 5e4ae7e60b4a17c3135991aff58a3fdf54e69825..20c2a0dbb93a5b9dadc7aa4d6fe2df860c961163 100644
3--- a/plugins/kubectl/README.md
4+++ b/plugins/kubectl/README.md
5@@ -35,13 +35,16 @@ plugins=(... kubectl)
6 | kgpl | `kgp -l` | Get pods by label. Example: `kgpl "app=myapp" -n myns` |
7 | kgpn | `kgp -n` | Get pods by namespace. Example: `kgpn kube-system` |
8 | kgpsl | `kubectl get pods --show-labels` | List all pods in ps output format with labels |
9+| kgpa | `kubectl get pods --all-namespaces` | List all pods in ps output format across all namespaces |
10 | kgpw | `kgp --watch` | After listing/getting the requested object, watch for changes |
11 | kgpwide | `kgp -o wide` | Output in plain-text format with any additional information. For pods, the node name is included |
12+| kgpall | `kubectl get pods --all-namespaces -o wide` | List all pods across all namespaces in wide output format (including node name) |
13 | kep | `kubectl edit pods` | Edit pods from the default editor |
14 | kdp | `kubectl describe pods` | Describe all pods |
15 | kdelp | `kubectl delete pods` | Delete all pods matching passed arguments |
16 | | | **Service management** |
17 | kgs | `kubectl get svc` | List all services in ps output format |
18+| kgsa | `kubectl get svc --all-namespaces` | List all services across all namespaces |
19 | kgsw | `kgs --watch` | After listing all services, watch for changes |
20 | kgswide | `kgs -o wide` | After listing all services, output in plain-text format with any additional information |
21 | kes | `kubectl edit svc` | Edit services(svc) from the default editor |
22@@ -49,6 +52,7 @@ plugins=(... kubectl)
23 | kdels | `kubectl delete svc` | Delete all services matching passed argument |
24 | | | **Ingress management** |
25 | kgi | `kubectl get ingress` | List ingress resources in ps output format |
26+| kgia | `kubectl get ingress --all-namespaces` | List ingress resources across all namespaces |
27 | kei | `kubectl edit ingress` | Edit ingress resource from the default editor |
28 | kdi | `kubectl describe ingress` | Describe ingress resource in detail |
29 | kdeli | `kubectl delete ingress` | Delete ingress resources matching passed argument |
30@@ -60,15 +64,18 @@ plugins=(... kubectl)
31 | kdelns | `kubectl delete namespace` | Delete the namespace. WARNING! This deletes everything in the namespace |
32 | | | **ConfigMap management** |
33 | kgcm | `kubectl get configmaps` | List the configmaps in ps output format |
34+| kgcma | `kubectl get configmaps --all-namespaces` | List configmaps across all namespaces |
35 | kecm | `kubectl edit configmap` | Edit configmap resource from the default editor |
36 | kdcm | `kubectl describe configmap` | Describe configmap resource in detail |
37 | kdelcm | `kubectl delete configmap` | Delete the configmap |
38 | | | **Secret management** |
39 | kgsec | `kubectl get secret` | Get secret for decoding |
40+| kgseca | `kubectl get secret --all-namespaces` | List secrets across all namespaces |
41 | kdsec | `kubectl describe secret` | Describe secret resource in detail |
42 | kdelsec | `kubectl delete secret` | Delete the secret |
43 | | | **Deployment management** |
44 | kgd | `kubectl get deployment` | Get the deployment |
45+| kgda | `kubectl get deployment --all-namespaces` | List deployments across all namespaces |
46 | kgdw | `kgd --watch` | After getting the deployment, watch for changes |
47 | kgdwide | `kgd -o wide` | After getting the deployment, output in plain-text format with any additional information |
48 | ked | `kubectl edit deployment` | Edit deployment resource from the default editor |
49@@ -91,7 +98,13 @@ plugins=(... kubectl)
50 | kgaa | `kubectl get all --all-namespaces` | List the requested object(s) across all namespaces |
51 | | | **Logs** |
52 | kl | `kubectl logs` | Print the logs for a container or resource |
53+| kl1h | `kubectl logs --since 1h` | Print logs from the last hour for a container or resource |
54+| kl1m | `kubectl logs --since 1m` | Print logs from the last minute for a container or resource |
55+| kl1s | `kubectl logs --since 1s` | Print logs from the last second for a container or resource |
56 | klf | `kubectl logs -f` | Stream the logs for a container or resource (follow) |
57+| klf1h | `kubectl logs --since 1h -f` | Stream logs from the last hour for a container or resource (follow) |
58+| klf1m | `kubectl logs --since 1m -f` | Stream logs from the last minute for a container or resource (follow) |
59+| klf1s | `kubectl logs --since 1s -f` | Stream logs from the last second for a container or resource (follow) |
60 | | | **File copy** |
61 | kcp | `kubectl cp` | Copy files and directories to and from containers |
62 | | | **Node management** |
63@@ -102,12 +115,14 @@ plugins=(... kubectl)
64 | kdelno | `kubectl delete node` | Delete the node |
65 | | | **Persistent Volume Claim management** |
66 | kgpvc | `kubectl get pvc` | List all PVCs |
67+| kgpvca | `kubectl get pvc --all-namespaces` | List all PVCs across all namespaces |
68 | kgpvcw | `kgpvc --watch` | After listing/getting the requested object, watch for changes |
69 | kepvc | `kubectl edit pvc` | Edit pvcs from the default editor |
70 | kdpvc | `kubectl describe pvc` | Describe all pvcs |
71 | kdelpvc | `kubectl delete pvc` | Delete all pvcs matching passed arguments |
72 | | | **StatefulSets management** |
73 | kgss | `kubectl get statefulset` | List the statefulsets in ps format |
74+| kgssa | `kubectl get statefulset --all-namespaces` | List statefulsets across all namespaces |
75 | kgssw | `kgss --watch` | After getting the list of statefulsets, watch for changes |
76 | kgsswide | `kgss -o wide` | After getting the statefulsets, output in plain-text format with any additional information |
77 | kess | `kubectl edit statefulset` | Edit statefulset resource from the default editor |
78@@ -121,6 +136,7 @@ plugins=(... kubectl)
79 | kdelsa | `kubectl delete sa` | Delete the service account |
80 | | | **DaemonSet management** |
81 | kgds | `kubectl get daemonset` | List all DaemonSets in ps output format |
82+| kgdsa | `kubectl get daemonset --all-namespaces` | List all DaemonSets across all namespaces |
83 | kgdsw | `kgds --watch` | After listing all DaemonSets, watch for changes |
84 | keds | `kubectl edit daemonset` | Edit DaemonSets from the default editor |
85 | kdds | `kubectl describe daemonset` | Describe all DaemonSets in detail |