Reputation: 5632
Is it possible to tail an arbitrary file from a Kubernetes pod using kubectl
? kubectl cp
doesn't appear to support this. And I don't want to tail all the logs, which I know I could do with kubectl logs -f
.
Upvotes: 1
Views: 877
Reputation: 687
Perhaps with kubectl exec.
Untested, and I haven't done a lot with k8s but:
kubectl exec -i podname -- tail -f filename
Might work.
Upvotes: 4