# Kubectl cp automation

**URL:** <https://discuss.kubernetes.io/t/kubectl-cp-automation/4466>\
**Category:** General Discussions\
**Tags:** development\
**Created:** [February 5, 2019, 6:05pm UTC](https://discuss.kubernetes.io/t/kubectl-cp-automation/4466 "2019-02-05T18:05:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhu\_chilipi](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@madhu\_chilipi](https://discuss.kubernetes.io/u/madhu_chilipi)\
**Post date:** [February 5, 2019, 6:05pm UTC](https://discuss.kubernetes.io/t/kubectl-cp-automation/4466/1 "2019-02-05T18:05:27Z")

</div>

I want to copy files to kubernetes pods frequently, How can we automate that task?

currently copying files using kubectl cp command.

Regards,  
Madhu

---

<div class="post-metadata">

**Author:** ![rata](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/rata/32/18244_2.png) [@rata](https://discuss.kubernetes.io/u/rata)\
**Post date:** [February 5, 2019, 7:26pm UTC](https://discuss.kubernetes.io/t/kubectl-cp-automation/4466/2 "2019-02-05T19:26:31Z")

</div>

Using a configmap/secret and modify it?
