-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Viewing logs for your pod | ||
|
||
## Links | ||
|
||
- [Using Kubectl Logs | SigNoz](https://signoz.io/blog/kubectl-logs/) | ||
|
||
## Instructions | ||
|
||
I went with the simplest incantation because I was looking at logs for the dev environment, and had just deployed, so I knew there wouldn't be many logs about the container I needed. | ||
|
||
First, get the ID of the pod you need logs for: | ||
|
||
```shell | ||
kubectl -n [my-namespace] get pods | ||
``` | ||
|
||
Then, get the logs: | ||
|
||
```shell | ||
kubectl -n [my-namespace] logs [my-pod-name] | ||
``` | ||
|
||
This printed out a lot of logs to my console, which I then copied and pasted into a file so I could peruse them more easily. |