Generic Kubernetes Commands
|
To list all services running |
$ kubectl get services |
|
To list all nodes with more details such as Internal IP. |
$ kubectl get nodes -o wide |
|
To list images |
$ kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec.containers[*].image}" |tr -s '[[:space:]]' '\n' |sort |uniq -c |
|
To list all Pods running |
$ kubectl get pods |
|
View details about a particular node |
$ kubectl describe node [node-name] |
|
View details about a particular pod |
$ kubectl describe pod [pod-name] |
|
To print logs from containers in a pod |
$ kubectl logs [pod-name] |
|
To install/uninstall helm chart |
helm install/uninstall <chart> |
|
A list of all installed helm charts |
helm list |