# How to get a list of Kubernetes resources?

**URL:** <https://discuss.hashicorp.com/t/how-to-get-a-list-of-kubernetes-resources/47681>\
**Category:** Kubernetes\
**Created:** [December 6, 2022, 12:42pm UTC](https://discuss.hashicorp.com/t/how-to-get-a-list-of-kubernetes-resources/47681 "2022-12-06T12:42:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gidyn](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/gidyn/32/24910_2.png) [@gidyn](https://discuss.hashicorp.com/u/gidyn)\
**Post date:** [December 6, 2022, 12:42pm UTC](https://discuss.hashicorp.com/t/how-to-get-a-list-of-kubernetes-resources/47681/1 "2022-12-06T12:42:02Z")

</div>

I need to get a list of Kubernetes resources (e.g. services) in a namespace that match a specific pattern. `kubernetes_service` will select a service with a known name, how do I find a list of services whose name is not known in advance?
