Reputation: 199
I have a .pcap
file on the master node, which I want to view in Wireshark on the local machine. I access the Kubernetes cluster via the Kops server by ssh from the local machine. I checked kubectl cp --help
but provides a way to cp a file from remote pod to kops server.
If anyone knows how to bring a file from Master Node -> Kops Server -> Local machine, please share your knowledge! Thanks!
Upvotes: 0
Views: 2015
Reputation: 199
Solution is simple - scp
, thanks to @OleMarkusWith's quick response.
All I did was:
On Kops Server:
scp admin@<master-node's-external-ip>:/path/to/file /dest/path
On local machine:
scp <kops-server-ip>:/path/to/file /dest/path
Upvotes: 1