To get the logs from a pod (where there is only a single container running:
kubectl logs <pod_name>
Note, if there are multiple containers within the pod, the above command will fail. You must specify the container name for pods with multiple containers.
To get the logs for a specific container within a pod
kubectl logs <pod_name> <container_name>
It is a best practice to always include the container name, so you are ensured to get the logs you want from the container you want without any errors.