You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, coder-logstream-kube will watch all namespaces in the cluster. To limit which namespaces are monitored, you can specify them in the values.yaml file:
# Watch specific namespaces onlynamespaces: ["default", "kube-system"]# Watch all namespaces (default)namespaces: []
When namespaces is empty or not specified, the service will monitor all namespaces in the cluster.
Note
For additional customization (such as customizing the image, pull secrets, annotations, etc.), you can use the
values.yaml file directly.
Your Coder template should be using a kubernetes_deployment resource with wait_for_rollout set to false.
This ensures all pod events will be sent during initialization and startup.
How?
Kubernetes provides an 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.
Custom Certificates
SSL_CERT_FILE: Specifies the path to an SSL certificate.
SSL_CERT_DIR: Identifies which directory to check for SSL certificate files.
# Create a KinD cluster./scripts/kind-setup.sh create
# Run integration testsgo test -tags=integration -v ./...
# Clean up when done./scripts/kind-setup.sh delete
The integration tests validate:
Pod event streaming with real Kubernetes informers
ReplicaSet event handling
Multi-namespace support
Label selector filtering
About
Stream Kubernetes Pod events to the Coder startup logs