# Use train kubernetes plugin with chef inspec

**URL:** https://discourse.chef.io/t/use-train-kubernetes-plugin-with-chef-inspec/23450
**Category:** Chef InSpec
**Created:** [October 29, 2024, 7:31am UTC](https://discourse.chef.io/t/use-train-kubernetes-plugin-with-chef-inspec/23450 "2024-10-29T07:31:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![abbas.kajamohideen](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@abbas.kajamohideen](https://discourse.chef.io/u/abbas.kajamohideen)
#### Post date: [October 29, 2024, 7:31am UTC](https://discourse.chef.io/t/use-train-kubernetes-plugin-with-chef-inspec/23450/1 "2024-10-29T07:31:42Z")

</div>

i have installed inspec version 5.22.55 and installed the train-kubernetes plugin from inspec. dont find any documentation for initializing a profile for train-kubernetes and facing error like method not found for resources like k8s\_namespace, k8s\_configmaps etc . any documentation or a sample inspec.yml for using train-kubernetes plugin and test compliance on k8s resources

---

<div class="post-metadata">

### Author: ![darkn3rd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/darkn3rd/32/4500_2.png) [@darkn3rd](https://discourse.chef.io/u/darkn3rd)
#### Post date: [October 30, 2024, 5:18pm UTC](https://discourse.chef.io/t/use-train-kubernetes-plugin-with-chef-inspec/23450/2 "2024-10-30T17:18:37Z")

</div>

> [@abbas.kajamohideen](#):
>
> train-kubernetes plugin

I had no idea what this is, so I looked it up and found:

- [GitHub - inspec/train-kubernetes: A Kubernetes plugin for use with Chef Inspec](https://github.com/inspec/train-kubernetes)
