Home.md
... ...
@@ -58,6 +58,7 @@
58 58
### cloud
59 59
- [azure](technology/cloud/azure)
60 60
- [docker](technology/cloud/docker)
61
+- [kubernetes](technology/cloud/kubernetes)
61 62
- [openshift](technology/cloud/openshift)
62 63
63 64
### communication
technology/cloud/kubernetes.md
... ...
@@ -0,0 +1,11 @@
1
+# kubernetes
2
+
3
+- list pods for all namespaces
4
+```
5
+kubectl get pods --all-namespaces
6
+```
7
+
8
+- get list of containers in pod
9
+```
10
+kubectl -n <namespace> get pods <pod_name> -o jsonpath={.spec.containers[*].name}
11
+```