- Notifications
You must be signed in to change notification settings - Fork6
Stream Kubernetes Pod events to the Coder startup logs
License
coder/coder-logstream-kube
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Stream Kubernetes Pod events to the Coder startup logs.
- Easily determine the reason for a pod provision failure, or why a pod is stuck in a pending state.
- Visibility into when pods are OOMKilled, or when they are evicted.
- Filter by namespace, field selector, and label selector to reduce Kubernetes API load.
Apply the Helm chart to start streaming logs into your Coder instance:
helm repo add coder-logstream-kube https://helm.coder.com/logstream-kubehelm install coder-logstream-kube coder-logstream-kube/coder-logstream-kube \ --namespace coder \ --set url=<your-coder-url-including-http-or-https>
NoteFor additional customization (such as customizing the image, pull secrets, annotations, etc.), you can use thevalues.yaml file directly.
Your Coder template should be using akubernetes_deployment
resource withwait_for_rollout
set tofalse
.
resource"kubernetes_deployment""hello_world" {count=data.coder_workspace.me.start_countwait_for_rollout=false...}
This ensures all pod events will be sent during initialization and startup.
Kubernetes provides aninformers API that streams pod and event data from the API server.
coder-logstream-kube
listens for pod creation events with containers that have theCODER_AGENT_TOKEN
environment variable set. All pod events are streamed as logs to the Coder API using the agent token for authentication.
SSL_CERT_FILE
: Specifies the path to an SSL certificate.SSL_CERT_DIR
: Identifies which directory to check for SSL certificate files.
About
Stream Kubernetes Pod events to the Coder startup logs
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors11
Uh oh!
There was an error while loading.Please reload this page.