> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ahmadraza.in/llms.txt
> Use this file to discover all available pages before exploring further.

# 5 LoggingMonitoring

# Kubernetes Basics Guide 🌱

## Minikube 🐳

### Enable Metrics Server

To enable the metrics server for your Minikube cluster:

```bash theme={null}
kubectl addons enable metrics-server
```

### View Node and Pod Usage

To view the usage of nodes and pods:

```bash theme={null}
kubectl top node
kubectl top pod
```

***

## Kubeadm Cluster 🌐

### Install Metric Server

To install the Metric Server binary and enable metrics for pods and nodes, follow the official installation guide from the [Kubernetes Metrics Server documentation](https://github.com/kubernetes-sigs/metrics-server).

***

## Logs 📜

### View Pod Logs

To show logs of a pod:

```bash theme={null}
kubectl logs -f event-sim.yaml
```

### View Specific Container Logs

If the YAML file has multiple pods, use this command to view logs for a specific container within a pod:

```bash theme={null}
kubectl logs -f event-sim.yaml <container-name>
```
