Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Kubernetes Monitoring

Log Monitoring
1. Login to the Grafana Dashboard.
URL:
Enter the login credentials.

2. After successful login, click on the left tab to search the dashboard. Select Log Monitoring.

3. On Log Monitoring Dashboard, select the application -> Service -> Container to find the
logs.
Recourse Monitoring
1. Login to the Grafana Dashboard.
URL:
Enter the login credentials.

2. After successful login, you will see “Resource Monitoring” Dashboard, here you can monitor
CPU/Memory/Disk utilization, pods/nodes status and many other things.
Useful Kubernetes Commands
1. Kubectl get all -n namespace_name : To get all the objects deployed in the particular
namespace.
2. Kubectl get pods -n namespace_name : To get all the pods deployed in the particular
namespace.
3. Kubectl get svc -n namespace_name : To get all the services deployed in the particular
namespace.
4. Kubectl get ns : To get all the namespace created in the cluster.
5. Kubectl get nodes : To get all the nodes attached in the cluster.
6. Kubectl describe object_type object_name -n namespace : To see detail of any object
deployed in cluster.
7. kubectl apply -f manifest_file_name : To deploy any object in cluster.
8. Kubectl delete object_type object_name: to delete any object in the cluster.
9. Kubectl delete -f manifest_file_name : To delete all the objects deployed using the same
file.
10. kubectl exec -it pod_name bash : To connect with any pod.

You might also like