05 Mar 2026
04:54 PM
- last edited on
06 Mar 2026
07:10 AM
by
MaciejNeumann
Hey there,
A question regarding tagging; I have an automatic tag I create that catches some services.
Those services are running on Kubernetes.
My question is, is it possible to create an entity selector that will apply the same tag on all the Kubernetes workloads that are running those services (based on their tag?)
Something like: All the Kubernetes workloads, with related services with tag "X"?
Thanks!
11 Jun 2026 07:08 AM
Hi @YuvalKon
I am late here for a response, I hope this will help.
Yes, this is possible using an entity selector in your auto-tag rule.
You can target Kubernetes workloads (entity type CLOUD_APPLICATION) based on their relationship to tagged services:
type(CLOUD_APPLICATION),toRelationships.runsOn(type(SERVICE),tag("X"))
If that doesn't return results, the relationship name may differ in your environment — you can check available relationships via:
GET /api/v2/entityTypes/CLOUD_APPLICATION
Thanks,
Sujit
Featured Posts