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
// Must log to Stderr because the CNI runtime uses Stdout as its state
logrus.SetOutput(os.Stderr)
CNI plugins run directly on the host, which makes it hard to access log -- and impossible to do through kubectl logs -- and operators would have to rely on reading through the kubelet log which contains a lot of verbosity.
We should dump the logs into a file (either by default or through an option) to make it easier for people to collect logs when something goes wrong. We should be consistent with other CNI implementations, such as Calico, and save logs to /var/log/linkerd-cni.
As an implementation idea, I'd consider something like:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
Our CNI plugin currently only logs to
stderr
:linkerd2/cni-plugin/main.go
Lines 94 to 95 in d76c420
CNI plugins run directly on the host, which makes it hard to access log -- and impossible to do through
kubectl logs
-- and operators would have to rely on reading through the kubelet log which contains a lot of verbosity.We should dump the logs into a file (either by default or through an option) to make it easier for people to collect logs when something goes wrong. We should be consistent with other CNI implementations, such as Calico, and save logs to
/var/log/linkerd-cni
.As an implementation idea, I'd consider something like:
The text was updated successfully, but these errors were encountered: