coder-logstream-kube
commandmoduleThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
README¶
coder-logstream-kube
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.
Usage
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_count wait_for_rollout = false ...}
This ensures all pod events will be sent during initialization and startup.
How?
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.
Custom Certificates
SSL_CERT_FILE
: Specifies the path to an SSL certificate.SSL_CERT_DIR
: Identifies which directory to check for SSL certificate files.
Documentation¶
There is no documentation for this package.