# How to use the sensu-plugins-kubernetes plugin

**URL:** <https://discourse.sensu.io/t/how-to-use-the-sensu-plugins-kubernetes-plugin/1286>\
**Category:** Sensu Plugins\
**Created:** [July 30, 2019, 4:10am UTC](https://discourse.sensu.io/t/how-to-use-the-sensu-plugins-kubernetes-plugin/1286 "2019-07-30T04:10:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cwjohnston](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/cwjohnston/32/193_2.png) [@cwjohnston](https://discourse.sensu.io/u/cwjohnston)\
**Post date:** [July 30, 2019, 10:24pm UTC](https://discourse.sensu.io/t/how-to-use-the-sensu-plugins-kubernetes-plugin/1286/2 "2019-07-30T22:24:49Z")

</div>

Hi David, thanks for sharing your question.

In the Ruby world, RubyGems (a.k.a. gems) are the predominant method of packaging and distributing code for use by other developers.

Due to the details of how the Ruby runtime loads gems from the file system, it’s not sufficient to pack up the content of the `lib` and `bin` directories from a repo like [sensu-plugins/sensu-plugins-kubernetes](https://github.com/sensu-plugins/sensu-plugins-kubernetes) to create a working asset.

The recommended way to create an asset for projects like sensu-plugins-kubernetes is to follow the steps documented in [Contributing Assets for Existing Ruby Sensu Plugins](https://discourse.sensu.io/t/contributing-assets-for-existing-ruby-sensu-plugins/1165)

If you’d like take a shot at this yourself, you might want to look at pull requests from similar plugin collections which have already been packaged as assets to guide you. Examples include [sensu-plugins-elasticsearch](https://github.com/sensu-plugins/sensu-plugins-elasticsearch/pull/144) and [sensu-plugins-disk-checks](https://github.com/sensu-plugins/sensu-plugins-disk-checks/pull/116/files).

I hope this helps to put you on the right path. I’ve also opened [https://github.com/sensu/sensu-docs/issues/1648](https://github.com/sensu/sensu-docs/issues/1648) to track the need for these details to be noted in our asset reference documentation.

---

_[View the full topic](https://discourse.sensu.io/t/how-to-use-the-sensu-plugins-kubernetes-plugin/1286)._
