开发者

How to get a list of Kubernetes resources from Terraform?

开发者 https://www.devze.com 2022-12-07 17:44 出处:网络
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

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 nam开发者_JS百科e is not known in advance?

A script around kubectl that implements an External Data Source might be able to do it, but was hoping that there's some way to do this with the native Kubernetes provider.

0

精彩评论

暂无评论...
验证码 换一张
取 消