Kubernetes Cluster Logs
Use Kubernetes to find and view logs for Hydrolix clusters
Overview
This guide gives basic instructions for finding and viewing logs with kubectl
or k9s
.
Kubernetes logging is available through kubectl or k9s. The Google Kubernetes Engine also gives a console view on the Operations Logging page.
Log files make troubleshooting and pinpointing issues easier.
Use kubectl
to list and view pod logs
kubectl
to list and view pod logsTo get the logs for a Kubernetes instance:
- Run
kubectl get pods
for a list of your pods. - Use
kubectl logs PODNAME_TO_VIEW --namespace=$HDX_KUBERNETES_NAMESPACE
to see specific logs.
Use k9s
to view logs
k9s
to view logsTo see logs in k9s
:
- Launch
k9s
from a terminal to connect to the current Kubernetes context. - Select a pod to view.
- Open the Logs panel for the selected pod.
Updated 23 days ago