Thanks to visit codestin.com
Credit goes to github.com

Skip to content

docs: add coder-logstream-kube docs and update k8s example template #8675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Jul 24, 2023
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
how?
  • Loading branch information
matifali committed Jul 24, 2023
commit ce6253091e24b0138917cb092df4676eaca298a8
6 changes: 6 additions & 0 deletions docs/platforms/kubernetes/deployment-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ Here is an example of the logs you can expect to see in the workspace startup lo
### Pod crash loop

![Pod crash loop](./coder-logstream-kube-logs-pod-crashed.png)

## How it works

Kubernetes provides an [informers](https://pkg.go.dev/k8s.io/client-go/informers) API that streams pod and event data from the API server.

coder-logstream-kube listens for pod creation events with containers that have the CODER_AGENT_TOKEN environment variable set. All pod events are streamed as logs to the Coder API using the agent token for authentication. For more details, see the [coder-logstream-kube](https://github.com/coder/coder-logstream-kube) repository.