# K8s module support for  --from-file=hooks

**URL:** <https://forum.ansible.com/t/k8s-module-support-for-from-file-hooks/30122>\
**Category:** Ansible Project\
**Tags:** kubernetes\
**Created:** [April 16, 2019, 11:00am UTC](https://forum.ansible.com/t/k8s-module-support-for-from-file-hooks/30122 "2019-04-16T11:00:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alon\_Nisser](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@Alon\_Nisser](https://forum.ansible.com/u/Alon_Nisser)\
**Post date:** [April 16, 2019, 11:00am UTC](https://forum.ansible.com/t/k8s-module-support-for-from-file-hooks/30122/1 "2019-04-16T11:00:52Z")

</div>

While I enjoy the new k8s module a lot I failed to find out how to do something like this with it

kubectl create configmap service-per-pod-hooks -n metacontroller --from-file=hooks

I’ll be glad for any pointers on how to solve this
