How to copy a file directly from Kubernetes Pods

You can donwload a copy a file directly from Kubernetes Pods; you will need

1- A copy of your DigitalOcean – Kubernete configuration

2- and Kubectl

You need an update of the configuration,
Download the configuration file
To connect to your cluster from the command line, you need a configuration file on your administration machine that contains an authentication certificate and other connection information
How to copy directly from DigitalOcean's Pods

>kubectl --kubeconfig="config.yaml" exec --stdin --tty yourpodsonKubernet --namespace="YourNameSpaceinKubernet" -- /bin/bash

And you should acces to the pods like that, to acces to the server, mine is Linux, now I can copy from there to file