To monitor logs in real-time in a Kubernetes cluster, you can use the `kubectl logs` command with the `--follow` option. This allows you to stream logs from a running pod continuously. For example:
kubectl logs <pod-name> --followTo tail logs from multiple containers in a single pod, specify the container name:
kubectl logs <pod-name> -c <container-name> --followFor a specific namespace, add the `-n` flag:
kubectl logs <pod-name> -n <namespace> --follow