# Mapping Kubernetes to Policy Boundaries - Need Help

**URL:** <https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948>\
**Category:** Open Q&A\
**Tags:** user-management\
**Created:** [October 31, 2025, 12:42pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948 "2025-10-31T12:42:40Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![kranthi](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kranthi](https://community.dynatrace.com/u/kranthi)\
**Post date:** [October 31, 2025, 12:42pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/1 "2025-10-31T12:42:40Z")

</div>

Hi everyone,

does anyone know how to map Kubernetes to policy boundaries? I want users with relevant policies to view data in their console using the latest Kubernetes UI.

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [October 31, 2025, 6:28pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/2 "2025-10-31T18:28:17Z")

</div>

Hello&nbsp;[@kranthi](https://community.dynatrace.com/user/91549). Yes you can do it based on:

- storage:k8s.namespace.name - The name of the namespace.  
operators: =, IN, startsWith, MATCH
- storage:k8s.cluster.name - The name of the cluster.  
operators: =, IN, startsWith, MATCH

for&nbsp;metrics, logs, spans, bizevents and events among others, please check here:

> **[IAM policy reference](https://docs.dynatrace.com/docs/manage/identity-access-management/permission-management/manage-user-permissions-policies/advanced/iam-policystatements)**
>
> Complete reference of IAM policies and corresponding conditions across all Dynatrace services.

---

<div class="post-metadata">

**Author:** ![kranthi](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kranthi](https://community.dynatrace.com/u/kranthi)\
**Post date:** [October 31, 2025, 6:37pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/3 "2025-10-31T18:37:19Z")

</div>

Hi&nbsp;[@DanielS](https://community.dynatrace.com/user/35788)&nbsp;, Thank you for your replay

Yes, but we don’t have limited name spaces right might have different namespaces like DB, Dynatrace, frontend, backend services, etc.

If possible, can i get examples of this situation along with screenshot

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [October 31, 2025, 6:51pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/4 "2025-10-31T18:51:27Z")

</div>

Yes look at this policy and 2 different possible boundaries.

 ![DanielS_0-1761936624369.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/9/e9e4ceec6c3a1805a6404433321da3f3ceff2ea5.png)

This policy is going to allow read metrics for the given namespaces detailed in IN in the boundary or the cluster names.

---

<div class="post-metadata">

**Author:** ![kranthi](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kranthi](https://community.dynatrace.com/u/kranthi)\
**Post date:** [October 31, 2025, 7:01pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/5 "2025-10-31T19:01:14Z")

</div>

[@DanielS](https://community.dynatrace.com/user/35788)&nbsp; these read permissions are already added to, but the problem is with policy boundaries, because for each cluster we have multiple namespaces for each cluster, and i could not be able to decide the which name entities user is actually looking. Also, this can’t change by immediately as well (Names of a Namespaces)  
Kindly look at the below screenshot, maybe you will get a more idea about.

 ![kranthi_0-1761937125961.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/1e994eeb04fb1734227d0f214d21ad97f6b62995.png)

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [October 31, 2025, 7:48pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/6 "2025-10-31T19:48:33Z")

</div>

Just to confirm, do you mean that the namespace names remain the same across different clusters?

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [October 31, 2025, 7:49pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/7 "2025-10-31T19:49:57Z")

</div>

Are you trying to restrict the visibility so that users can only see the specific Kubernetes clusters you define?

---

<div class="post-metadata">

**Author:** ![kranthi](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kranthi](https://community.dynatrace.com/u/kranthi)\
**Post date:** [November 3, 2025, 10:21am UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/8 "2025-11-03T10:21:19Z")

</div>

Nope, We have multiple clusters…In policy boundaries how could i mention which all those namespaces in boundaries to apps to get visible without any restriction on their clusters information

---

<div class="post-metadata">

**Author:** ![kranthi](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kranthi](https://community.dynatrace.com/u/kranthi)\
**Post date:** [November 3, 2025, 1:45pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/9 "2025-11-03T13:45:43Z")

</div>

Not to restrict the visibility of namespace wise. we wanted to restrict the users with cluster wise. We have couple of applications with many clusters. So, we wanted to restrict the user up to their application clusters only.

---

<div class="post-metadata">

**Author:** ![kranthi](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kranthi](https://community.dynatrace.com/u/kranthi)\
**Post date:** [November 4, 2025, 4:49pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/10 "2025-11-04T16:49:17Z")

</div>

Hi&nbsp;[@DanielS](https://community.dynatrace.com/user/35788)&nbsp;, Any suggestion for issue

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [November 4, 2025, 5:42pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/11 "2025-11-04T17:42:39Z")

</div>

Okay [@kranthi](https://community.dynatrace.com/user/91549)&nbsp;, so if you want to restrict by cluster, why isn’t the cluster boundary working for you? There’s something I still don’t understand about your problem.

---

<div class="post-metadata">

**Author:** ![kranthi](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kranthi](https://community.dynatrace.com/u/kranthi)\
**Post date:** [November 4, 2025, 5:44pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/12 "2025-11-04T17:44:36Z")

</div>

You mean to say do we need to create separate boundary for the cluster’s boundary

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [November 4, 2025, 5:49pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/13 "2025-11-04T17:49:59Z")

</div>

I mean that if you associate the cluster policy and its boundary to a group, and only grant access to those users who share those specific applications, you’ll ensure that they can only access information related to those clusters — depending on whether you choose metrics, logs, etc.

---

<div class="post-metadata">

**Author:** ![kranthi](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kranthi](https://community.dynatrace.com/u/kranthi)\
**Post date:** [November 11, 2025, 1:15pm UTC](https://community.dynatrace.com/t/mapping-kubernetes-to-policy-boundaries-need-help/53948/14 "2025-11-11T13:15:02Z")

</div>

Hello&nbsp;[@DanielS](https://community.dynatrace.com/user/35788)&nbsp;, I am looking for the solution.
