title: How to use kubectl cp to copy files automatically from a local system to kubernetes Pods with list filter
body: <p>I have many pods in a kubernetes system with randomly name wordpress.xxx.xx.</p>
  
  <p>Here the list of <a href="https://i.stack.imgur.com/k7Jxw.png" rel="nofollow noreferrer">pods</a></p>
  
  <p>I want to use one command with <code>kubectl cp</code> in other to copy files to all pods from one deployment.</p>
  
  <p>In my case I don't want to use volumes because they mount into a path that already the existing content of that folder will be hidden.</p>
  
  <p>How to do that, please?</p>
  
  <p>Thank you for your answer.</p>