diff --git a/k8s/bootstrap/deployment.yaml.j2 b/k8s/bootstrap/deployment.yaml.j2 index 0d4033d..757671d 100644 --- a/k8s/bootstrap/deployment.yaml.j2 +++ b/k8s/bootstrap/deployment.yaml.j2 @@ -136,6 +136,14 @@ spec: value: 12GiB - name: IPFS_TELEMETRY value: "off" + # kubo logs only errors by default. Info adds libp2p's and the + # DHT's warnings and info lines, which ProbeLab asked us to ship + # for them; it has no per-connection peer IDs or agent versions. + # JSON, as on needle, so Loki can parse the fields. + - name: GOLOG_LOG_LEVEL + value: info + - name: GOLOG_LOG_FMT + value: json # RPC bearer token for probes and CLI calls (kubo's --api-auth takes # no env var or config fallback). Expanded inside `sh -c` below, so # it only appears in argv of processes in THIS container's PID