epok
View as Markdown

Install on Kubernetes (Helm-packaged OpenTelemetry Collector)

Updated Nov 22, 2026 · today

What is supported

ServiceLogsTracesMetricsChange eventsHow it arrives
Container logsYesNot listedNot listedNot listedEpok Helm chart (Vector DaemonSet)
Kubernetes eventsYesNot listedNot listedNot listedEpok Helm chart (Vector DaemonSet)
Node, pod and cluster metricsNot listedNot listedYesNot listedEpok Helm chart (OpenTelemetry agent and cluster collectors)
Traces from your podsNot listedYesNot listedNot listedEpok Helm chart (OpenTelemetry agent)

Recommended: the one-agent bundle. One Helm install ships container logs through Vector, Kubernetes events and node, pod and container metrics through OpenTelemetry, and network-flow metrics through OBI/Beyla eBPF to build your service map. No application code changes. The bundle runs log, metrics and eBPF collectors per node, plus one events collector and one cluster collector for the cluster.

Logs after collectors start: ~30 s; Service map cycle: ~6 h by default; API key: app.epok.cloud, then Settings, then API Keys

Prerequisites

  • A Kubernetes cluster, Helm 3, and kubectl configured for it. Your installer account must be able to create the namespace, workloads, Secret and read-only RBAC bindings.
  • An ingest-scoped API key from Settings, then API Keys. An ingest key is created automatically on signup.
  • Logs and events work on any kernel supported by your Kubernetes setup; they have no eBPF kernel or BTF requirement. The eBPF service map requires Linux nodes with kernel >=5.8 and BTF. Check the nodes, not your laptop:
on each Linux node
bash
# Run on each Linux node that will run the eBPF collector.
uname -r                         # Must be >=5.8
test -r /sys/kernel/btf/vmlinux && echo "Kernel BTF is available"

Pod Security Standards restrictedand OpenShift SCC policies may reject the eBPF pod's hostNetwork, hostPID, or capabilities. A policy exception may be needed. The log collector also needs host-path mounts. Review what the Epok agent can and can't see with your platform team before installing.

Recommended: logs, events, and the eBPF service map

Install chart epok-collector version 0.4.0 from the published Epok Helm repository. Replace <YOUR_INGEST_KEY> with your key and <YOUR_CLUSTER_NAME> with one name per cluster, keeping the quotes. agent.enabled and cluster.enabled turn on the metrics collectors. Since chart 0.4.0 both are on by default; the command sets them so it reads the same on every chart version.

terminal
bash
helm repo add epok https://charts.epok.cloud
helm repo update
helm install epok epok/epok-collector --version 0.4.0 \
  --namespace epok --create-namespace \
  --set apiKey='<YOUR_INGEST_KEY>' \
  --set clusterName='<YOUR_CLUSTER_NAME>' \
  --set agent.enabled=true --set cluster.enabled=true \
  --set ebpf.enabled=true

Variant without eBPF

Choose this alternative if your nodes lack the kernel/BTF support or your cluster policy does not allow eBPF. Omit ebpf.enabled; it defaults to false. Kubernetes events and metrics remain enabled. For container logs only, set --set agent.enabled=false, --set cluster.enabled=false and --set events.enabled=false. Run one install variant, since both use the release name epok.

alternative install
bash
# Alternative install after adding/updating the Helm repo above.
helm install epok epok/epok-collector --version 0.4.0 \
  --namespace epok --create-namespace \
  --set apiKey='<YOUR_INGEST_KEY>' \
  --set clusterName='<YOUR_CLUSTER_NAME>' \
  --set agent.enabled=true --set cluster.enabled=true

What to expect

  • Logs: about 30 seconds after the collectors are running and your applications emit logs. Open Epok and go to Live Tail to verify them. Kubernetes events arrive as log records as the cluster emits them.
  • Metrics: within about two minutes. The collectors read the kubelet and the cluster state every 60 seconds. Node, pod and container CPU and memory (k8s_node_*, k8s_pod_*, container_*) and pod phase, restarts and deployment state (k8s_pod_phase, k8s_container_restarts, k8s_deployment_*) arrive. Pod and container series carry the same service as the pod's logs.
  • Service map: a periodic cycle, default ~6 hours. Even when network metrics are arriving, the map may take up to that long to first appear. It needs observed traffic between workloads. Log arrival does not mean the map has been built yet.

Verify and troubleshoot the bundle

These commands use the release and namespace from the install above. Running pods alone do not prove successful delivery; check each collector's own logs for authentication and export errors.

terminal
bash
kubectl -n epok get pods

# Vector container logs
kubectl -n epok logs daemonset/epok-epok-collector -c vector --tail=100

# Kubernetes events
kubectl -n epok logs deployment/epok-epok-collector-events --tail=100

# Node, pod and container metrics (per-node agent)
kubectl -n epok logs daemonset/epok-epok-collector-agent --tail=100

# Pod phase, restarts and deployment state (cluster collector)
kubectl -n epok logs deployment/epok-epok-collector-cluster --tail=100

# eBPF network metrics (when enabled)
kubectl -n epok logs daemonset/epok-epok-collector-ebpf -c beyla --tail=100
  • Nothing arrives: check the ingest key and outbound HTTPS access to ingest.epok.cloud. Container logs go to https://ingest.epok.cloud/api/v1/ingest; Kubernetes and eBPF metrics go to https://ingest.epok.cloud/v1/metrics. The events collector sends OTLP log records to https://ingest.epok.cloud/v1/logs.
  • No eBPF pod or permission errors: check the node kernel and BTF, then kubectl -n epok get events --sort-by=.lastTimestamp for scheduling or admission failures. If capabilities alone cannot load eBPF, --set ebpf.privileged=true is a fallback on the bundle install. It grants broad host access and may still require a policy exception; it does not supply a missing kernel feature. The default is privileged: false.
  • Logs arrive but the map is empty: check the eBPF collector for export errors and confirm traffic between workloads. Allow for the default ~6-hour map-building cycle. If a full cycle has elapsed with traffic and successful exports, contact support with the collector errors and install details, excluding your key.
  • Using existingSecret: the Secret must contain api-key with the raw ingest key and, with eBPF enabled, otlp-header with the complete value x-api-key=<same key>. The chart creates both automatically when you use apiKey instead.
alternative install with an existing Secret
bash
# Create this in the epok namespace before installing with existingSecret.
kubectl create namespace epok
kubectl -n epok create secret generic epok-credentials \
  --from-literal=api-key='<YOUR_INGEST_KEY>' \
  --from-literal=otlp-header='x-api-key=<YOUR_INGEST_KEY>'

helm install epok epok/epok-collector --version 0.4.0 \
  --namespace epok \
  --set existingSecret=epok-credentials \
  --set clusterName='<YOUR_CLUSTER_NAME>' \
  --set agent.enabled=true --set cluster.enabled=true \
  --set ebpf.enabled=true

Skip namespace creation if epok already exists. Replace both placeholders with the same key. As the chart NOTES explain, rotate both Secret entries together and restart the collectors after changing them.

Service names, upgrade and uninstall

Each log line's service comes from the pod label app.kubernetes.io/name, then the label app, then the container name, then unknown. Pods in system namespaces such as kube-system appear as <namespace>/<container>. A line named from the container name or unknown carries k8s_service_source, so k8s_service_source:* | stats by (k8s_service_source) count() counts the pods that need a label.

JSON logs are lifted to fields. The levelcomes from the log's level, else its severity (so Google-style "severity":"ERROR" is an error), else info. Numeric levels such as Pino's 50 map to error.

upgrade or uninstall
bash
# Upgrade an existing release in place, keeping the values you set (Helm >= 3.14).
# --reset-then-reuse-values takes new defaults from the chart; plain --reuse-values
# would drop settings that were added after your install's chart version.
helm repo update
helm upgrade epok epok/epok-collector --version 0.4.0 -n epok --reset-then-reuse-values

# Uninstall.
helm uninstall epok -n epok
kubectl delete namespace epok

Uninstall removes every object the chart created, including its ClusterRoles and bindings. It leaves a Secret you created yourself and the node directory /var/lib/epok-collector (disk buffer and file offsets); delete that on each node for a clean slate.

Traces from your apps

With agent.enabled=true (both installs above), each node runs an OpenTelemetry agent with an OTLP receiver behind the Service epok-epok-collector-otlp.epok: port 4318 for OTLP over HTTP, 4317 for gRPC. That name is for release epok in namespace epok; another release name or fullnameOverride changes it. Find yours with kubectl -n <namespace> get svc -l app.kubernetes.io/component=agent -o name. Apps send traces, logs and metrics there without a key; the agent adds it and sends to Epok. The Service keeps traffic on the sender's node (internalTrafficPolicy: Local), so the agent knows which pod sent each span. To turn the receiver off, set agent.otlp.enabled=false.

Because traffic stays on the node, an app that starts before its node's agent is ready has nowhere to send until the agent is up (on GKE Dataplane V2 the connection is refused). Keep the OpenTelemetry SDK's export retry on; most SDKs retry with backoff by default.

point an app at the agent
yaml
# In each app's container spec. No key: the agent adds it.
env:
  - name: OTEL_EXPORTER_OTLP_ENDPOINT
    value: http://epok-epok-collector-otlp.epok:4318     # gRPC: :4317
  - name: OTEL_EXPORTER_OTLP_PROTOCOL
    value: http/protobuf
  - name: OTEL_SERVICE_NAME                # optional: else the app.kubernetes.io/name label
    value: checkout

Every span and OTLP log record gets k8s_namespace_name, k8s_pod_name, k8s_node_name and k8s_deployment_name(taken from the pod's ReplicaSet owner, marked k8s.deployment.name.source=derived). An app that sets no service name is named from its app.kubernetes.io/name label, then app, then the container name. Logs your app sends over OTLP keep the trace ID of the request, so a trace shows its logs. Calls between two instrumented services appear as edges on the service map.

Measured on a one-node kind cluster with chart 0.3.1 (two Python services under opentelemetry-instrument, one sending over gRPC and one over HTTP): spans stored for both with the four fields above, the label used as the service name, the edge on the service map, and the logs in the trace. At about 2,000 spans a second for 2 minutes the agent used 0.03 CPU cores and at most 184 MiB of memory, and dropped no spans. A pod that sends in its first second can lose the pod fields on those first spans (512 of 240,000 in that run) until the agent has seen the new pod. Not yet run on a managed cluster or behind a service mesh: a sidecar proxy replaces the pod's address, and spans then arrive without pod fields.

Which SDK settings to use per language: Traces (APM). Inside the cluster, drop the key header and use the Service above as the endpoint.

Auto-instrumentation with the OpenTelemetry Operator

The OpenTelemetry Operator injects instrumentation into Java, Node.js, Python and .NET pods with no code change. The chart does not install the Operator; install it from upstream. Then create one Instrumentation per namespace that points at the agent Service, and annotate the workloads. We have not run the Operator with this chart yet.

Instrumentation + annotation
yaml
# Needs the OpenTelemetry Operator (and cert-manager) installed in the cluster.
apiVersion: opentelemetry.io/v1alpha1
kind: Instrumentation
metadata:
  name: epok
  namespace: shop                          # the namespace of the apps
spec:
  exporter:
    endpoint: http://epok-epok-collector-otlp.epok:4318
  propagators: [tracecontext, baggage]
  sampler:
    type: parentbased_always_on
  java:
    env: [{name: OTEL_EXPORTER_OTLP_PROTOCOL, value: http/protobuf}]
  nodejs:
    env: [{name: OTEL_EXPORTER_OTLP_PROTOCOL, value: http/protobuf}]
  python:
    env: [{name: OTEL_EXPORTER_OTLP_PROTOCOL, value: http/protobuf}]
  dotnet:
    env: [{name: OTEL_EXPORTER_OTLP_PROTOCOL, value: http/protobuf}]
---
# Then annotate each workload's pod template (one language per pod):
#   instrumentation.opentelemetry.io/inject-java: "true"
#   instrumentation.opentelemetry.io/inject-nodejs: "true"
#   instrumentation.opentelemetry.io/inject-python: "true"
#   instrumentation.opentelemetry.io/inject-dotnet: "true"
kubectl -n shop patch deployment checkout --type merge -p \
  '{"spec":{"template":{"metadata":{"annotations":{"instrumentation.opentelemetry.io/inject-java":"true"}}}}}'

Alternative: configure Vector manually

The existing manual shipper setup follows below. Choose it instead of the Helm bundle to manage your own Vector manifests; running both will duplicate container logs. This path reads CRI logs through host mounts and ships them to Epok's Elasticsearch-compatible Bulk endpoint. Its labels, authentication, and verification commands apply to the manual setup. A metrics setup without the chart follows it.

1. Store the API key as a secret

bash
kubectl create namespace epok
kubectl -n epok create secret generic epok-credentials \
  --from-literal=api-key=epk_REPLACE_ME

2. Vector config (ConfigMap)

yaml
# epok-vector-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: epok-vector-config
  namespace: epok
data:
  vector.yaml: |
    sources:
      kube_logs:
        type: kubernetes_logs
        # Vector auto-discovers pods, attaches namespace/pod/container
        # labels, and parses the CRI/JSON log format. No extra config
        # needed for the common case.
        glob_minimum_cooldown_ms: 200

    transforms:
      enrich:
        type: remap
        inputs: [kube_logs]
        source: |
          # Map the kubernetes_logs fields to Epok's expected shape.
          .service = .kubernetes.container_name
          .namespace = .kubernetes.pod_namespace
          .pod = .kubernetes.pod_name
          .node = .kubernetes.pod_node_name
          ._msg = .message
          del(.message)

    sinks:
      epok:
        type: elasticsearch
        inputs: [enrich]
        endpoints: ["https://ingest.epok.cloud"]
        bulk:
          index: logs
        # Required. Epok is not a real Elasticsearch: the default
        # api_version "auto" sniffs the version against our root (404) and the
        # sink then never starts, so nothing ships and nothing says why.
        api_version: v8
        compression: gzip
        healthcheck:
          enabled: false
        auth:
          strategy: basic
          user: ${EPOK_API_KEY}
          password: x
        # Sensible defaults for k8s log volume.
        batch:
          max_events: 1000
          timeout_secs: 5
        buffer:
          type: memory
          max_events: 5000
          when_full: drop_newest

3. RBAC for Vector

Vector needs read access to pods + namespaces to enrich log entries with metadata.

yaml
# epok-vector-rbac.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: epok-vector
  namespace: epok
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: epok-vector
rules:
- apiGroups: [""]
  resources: ["pods", "namespaces", "nodes"]
  verbs: ["list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: epok-vector
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: epok-vector
subjects:
- kind: ServiceAccount
  name: epok-vector
  namespace: epok

4. DaemonSet

yaml
# epok-vector-daemonset.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: epok-vector
  namespace: epok
spec:
  selector:
    matchLabels: { app: epok-vector }
  template:
    metadata:
      labels: { app: epok-vector }
    spec:
      serviceAccountName: epok-vector
      tolerations:
      - operator: Exists                  # Run on every node, incl. tainted ones
      containers:
      - name: vector
        # Pin to a specific version, not :latest, so a Vector release
        # never breaks your log pipeline. Bump deliberately after testing.
        image: timberio/vector:0.43.0-alpine
        env:
        - name: EPOK_API_KEY
          valueFrom:
            secretKeyRef:
              name: epok-credentials
              key: api-key
        resources:
          requests: { cpu: 50m,  memory: 128Mi }
          limits:   { cpu: 500m, memory: 512Mi }
        volumeMounts:
        - { name: config,   mountPath: /etc/vector }
        - { name: var-log,  mountPath: /var/log,           readOnly: true }
        - { name: var-lib,  mountPath: /var/lib/docker,    readOnly: true }
        - { name: data,     mountPath: /vector-data }
      volumes:
      - { name: config,   configMap: { name: epok-vector-config } }
      - { name: var-log,  hostPath:  { path: /var/log } }
      - { name: var-lib,  hostPath:  { path: /var/lib/docker } }
      - { name: data,     emptyDir: {} }

5. Apply everything

bash
kubectl apply -f epok-vector-config.yaml
kubectl apply -f epok-vector-rbac.yaml
kubectl apply -f epok-vector-daemonset.yaml

# Watch the pods come up
kubectl -n epok rollout status daemonset/epok-vector

# Tail one of the agents to confirm
kubectl -n epok logs -l app=epok-vector --tail=20 -f

Verify

  1. Open app.epok.cloud and go to Live Tail. Container logs should stream in within 30–60 s, tagged with namespace, pod, container.
  2. Restart a pod: kubectl delete pod <some-pod> and watch its replacement start. Within a minute the new pod's container logs appear in Live Tail with its name in pod (this manual config). The Helm chart writes it as k8s_pod_name; logs routed through the Cloud Logging sink (GKE Autopilot) carry k8s.pod.
  3. Open Services. Each unique container_name appears as a service card with hit counts.

When the key is wrong, nothing says so

This is the failure mode to internalize before you go looking anywhere else. The DaemonSet carries the key in the sink config, and we told you to set healthcheck.enabled: false above (you have to, because the sink otherwise never starts). The consequence is that Vector comes up healthy with a bad key. The pods are Running, the rollout succeeded, kubectl get podsis clean, and Epok shows nothing, because the rejection is happening one layer down, on every batch, and the only place it is written down is the agent's own log.

terminal
bash
# The sink errors live in the agent's OWN log, not in Epok.
kubectl -n epok logs -l app=epok-vector --tail=200 | grep -iE 'error|401|403|unauthorized|forbidden'

# Check the secret for a trailing newline; the #1 cause of a 403 here.
# --from-literal is clean; --from-file keeps the file's final newline.
kubectl -n epok get secret epok-credentials \
  -o jsonpath='{.data.api-key}' | base64 -d | xxd | tail -2

The newline trap is specific to this setup. The Vector config authenticates with strategy: basic, which sends the key as the HTTP Basic username. Epok trims whitespace around a key sent via X-API-Key or Bearer, but the username parsed out of a Basic credential is used as-is. Any stray whitespace that survives into that username hashes to something that is not your key, and you get a 403 rather than a 401. --from-literal (step 1) stores the key clean; --from-file keeps whatever trailing newline the file had, which is why the xxd check above is worth ten minutes of staring at YAML. Use printf, not echo, if you must write that file.

To separate a key problem from a config problem, take the cluster out of the loop and hit the same endpoint the sink hits:

terminal
bash
curl -i -X POST https://ingest.epok.cloud/_bulk \
  -H 'Content-Type: application/x-ndjson' \
  -H 'X-API-Key: YOUR_API_KEY' \
  --data-binary $'{"create":{}}\n{"_msg":"auth probe","service":"probe"}\n'

# 200 {"status":"ok","accepted":1}            key + header are both fine
# 401 {"error":"unauthorized","detail":...}   no key found in ANY accepted header
# 403 {"error":"forbidden","detail":...}      a key WAS found, and rejected
# 429 {"error":"rate_limited",...}            key is FINE; quota or rate limit

401 and 403 mean different things. 401 is "no credential found in any accepted header": the key never made it out of the secret, or the sink is sending a header name Epok does not read. 403 is "a key was read, and rejected": rotated, invalid (the newline case), missing the ingest scope, or the tenant disabled. The detail field names which one. A quota or plan gate is not a 403: an expired trial or a blown daily volume cap answers 429 with a retry_after, which means your key is good and your billing is not. Every accepted credential form is in Authentication; the plan gates are in Limits & error codes.

Common gotchas

  • Containerd vs Docker. Modern clusters use containerd, and logs live under /var/log/containers/ (already mounted above). The /var/lib/docker mount is a no-op on pure-containerd nodes and harmless to leave in.
  • PodSecurity / Pod Security Admission. Host-path mounts are disallowed by both baseline and restricted policies. Arrange an appropriate policy exception with your platform team for this collector namespace.
  • EKS + Fargate.Fargate nodes can't run DaemonSets. Use Fluent Bit's built-in EKS Fargate logging instead. There is a config snippet in the AWS guide.
  • Resource limits. The 500 m CPU / 512 Mi memory cap is right for ~5 k logs/sec/node. Bump if you see Vector OOMing under heavy log bursts.

Kubernetes metrics without the chart (manual setup)

With the Helm chart, use agent.enabled=true and cluster.enabled=true (the install above) and skip this section. It is for the manual Vector setup only: the Vector DaemonSet above ships logs. To get node and pod CPU/memory, restart counts and pod phase (the signals the metric detectors and the per-service infrastructure panel read), run the OpenTelemetry Collector as a DaemonSet with the kubeletstats and k8s_cluster receivers. Add this to the collector ConfigMap:

otel-collector-metrics.yaml (DaemonSet ConfigMap)
yaml
receivers:
  kubeletstats:                       # per-node + per-pod resource usage
    collection_interval: 30s
    auth_type: serviceAccount
    endpoint: https://${env:K8S_NODE_NAME}:10250
    insecure_skip_verify: true
    metric_groups: [node, pod, container, volume]
  k8s_cluster:                        # cluster-level state (pod phase, restarts)
    collection_interval: 30s
processors:
  # The Vector log DaemonSet above keys logs by container name as `service`.
  # Stamp the same onto metrics so pod CPU/memory JOIN the right service, 
  # kubeletstats leaves service unset, so without this the metrics land with no
  # service and never correlate with the logs on the service page.
  transform/service:
    metric_statements:
      - context: resource
        statements:
          - set(attributes["service.name"], attributes["k8s.container.name"]) where attributes["k8s.container.name"] != nil
exporters:
  otlphttp/epok:
    metrics_endpoint: https://ingest.epok.cloud/v1/metrics
    compression: gzip               # the metrics path accepts gzip
    encoding: json                    # set this: correct against every build
    headers: { Authorization: "Bearer YOUR_API_KEY" }
service:
  pipelines:
    metrics:
      receivers: [kubeletstats, k8s_cluster]
      processors: [transform/service]
      exporters: [otlphttp/epok]

The collector's ServiceAccount needs read access to the kubelet (/stats/summary). Once metrics arrive, the metric detectors (saturation, anomaly, slow drift, reporting gap) switch on automatically for the cluster, and pod CPU/memory appear on each service page. The k8s_cluster receiver also sends pod phase and container restarts (k8s_pod_phase, k8s_container_restarts), so Pending pods and restart storms need nothing more.

Your first query

Shipping is only half the job; you also need to read the data back. The enrich transform in step 2 puts a namespace on every line the DaemonSet sends, so namespace:* (the field exists) is a clean way to ask "show me everything that arrived from the cluster." Your tenant id is in Settings, then API Keys, and in the app URL.

terminal
bash
curl -X POST https://app.epok.cloud/api/v1/tenants/YOUR_TENANT_ID/search \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "query": "namespace:*",
  "start": "-1h",
  "end": "now",
  "limit": 100
}'

A good result is a logs array of up to 100 entries, each carrying _msg, _time, and the service / namespace / pod / node fields the remap set, plus a count and an elapsed_ms. If count is 0 but the agent logs are clean, widen start to -24h before concluding anything: an idle cluster may not have logged in the last hour. The request body takes exactly five fields: query, start, end, limit, and a before timestamp cursor for paging backward.

The more useful second query is a breakdown of which pods are actually talking, and how much:

request body
json
{
  "query": "namespace:* | stats by (pod) count()",
  "start": "-1h",
  "end": "now",
  "limit": 100
}

In the product this is Explore, which uses the same syntax and returns the same results, with the field list down the side. Note that container logs arrive without a level unless your application emits one as a JSON field, so level:error across a whole cluster is usually a thinner filter than people expect; the full grammar, and how to work around that, is in Search syntax.

Want pod-level views out of the box? Once logs are flowing, Epok auto-builds Service Health views per container; install with agent.enabled and cluster.enabled and each service page also shows pod CPU, memory, and restart counts. No dashboards to configure.

Next

  • Metrics & infrastructure: host metrics for machines outside the cluster, next to the same services.
  • Traces (APM): the next signal. Logs tell you a pod is unhappy; spans tell you which request path made it that way.
  • Detectors: what fires on this data once it is flowing, and what each one needs before it will fire at all.
  • AWS: EKS on Fargate, plus the CloudWatch and ALB log paths around the cluster.
  • Authentication: the full credential matrix behind the 401 / 403 triage above.