<p>Is it possible to tail an arbitrary file from a Kubernetes pod using <code>kubectl</code>? <code>kubectl cp</code> doesn't appear to support this.  And I don't want to tail all the logs, which I know I could do with <code>kubectl logs -f</code>.</p>

Mark
<p>Perhaps with kubectl exec.</p>

<p>Untested, and I haven't done a lot with k8s but:</p>

<pre><code>kubectl exec -i podname -- tail -f filename
</code></pre>

<p>Might work.</p>
