Skip to content

Commit e67408b

Browse files
committed
Add 'How?' section
1 parent 36f6489 commit e67408b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ resource "kubernetes_deployment" "hello_world" {
3939

4040
This ensures all pod events will be sent during initialization and startup.
4141

42+
## How?
43+
44+
Kubernetes provides an [informers](https://pkg.go.dev/k8s.io/client-go/informers) API that streams pod and event data from the API server.
45+
46+
`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.
47+
4248
## Custom Certificates
4349

4450
- [`SSL_CERT_FILE`](https://go.dev/src/crypto/x509/root_unix.go#L19): Specifies the path to an SSL certificate.

0 commit comments

Comments
 (0)