Jump to content

Kubernetes: Difference between revisions

118 bytes added ,  17 January 2022
Line 135: Line 135:
===pods===
===pods===
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
# List all pods
kubectl get pods
kubectl get pods
kubectl describe pods
kubectl describe pods
# List pods and node name
kubectl get pods -o=custom-columns='NAME:metadata.name,Node:spec.nodeName'


# Access a port on a pod
# Access a port on a pod