# Private Synthetic Monitoring: Kubernetes Location

**URL:** <https://community.dynatrace.com/t/private-synthetic-monitoring-kubernetes-location/47122>\
**Category:** Synthetic Monitoring\
**Tags:** activegate, kubernetes, synthetic-monitoring\
**Created:** [August 12, 2024, 7:51pm UTC](https://community.dynatrace.com/t/private-synthetic-monitoring-kubernetes-location/47122 "2024-08-12T19:51:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amarjit](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Amarjit](https://community.dynatrace.com/u/Amarjit)\
**Post date:** [August 12, 2024, 7:51pm UTC](https://community.dynatrace.com/t/private-synthetic-monitoring-kubernetes-location/47122/1 "2024-08-12T19:51:07Z")

</div>

I have set up a ActiveGate in the Kubernetes cluster and it is connected to the Dynatrace cluster as per status.

I want to execute a Browser monitor script in this activegate while recording the application and playing locally i am able to successful execute the script.

But the same when i am executing via the private location running in kubernetes cluster i get the Unauthorized error.

Could you suggest if i need to perform any additional steps

 ![SyntheticMonitor_LoginError.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/668c9f8adabce2548cb587e1bd9d232085f5640f.png)  
 ![SyntheticMonitor_RecordPlayback.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/f11bbab4bf8853f1ca7896f190f507f7bb1f6dfe.png)

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [August 15, 2024, 10:50am UTC](https://community.dynatrace.com/t/private-synthetic-monitoring-kubernetes-location/47122/2 "2024-08-15T10:50:04Z")

</div>

At what step is this monitor failing? If it’s at the first one, then I suspect you need to add [HTTP Authentication](https://docs.dynatrace.com/docs/platform-modules/digital-experience/synthetic-monitoring/general-information/synthetic-authentication#web-form-clickpath) details in, or possibly the machine you are using doesn’t have access allowed to the site and may need to be added to a list of allowed IPs/ machines etc.&nbsp; If it’s after you enter the password, then I would try a curl to the same url which includes the username and password. You can find some helpful curl commands [here](https://community.dynatrace.com/topic/213876)

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 8, 2024, 12:16pm UTC](https://community.dynatrace.com/t/private-synthetic-monitoring-kubernetes-location/47122/3 "2024-10-08T12:16:03Z")

</div>

Hi&nbsp;[@Amarjit](https://community.dynatrace.com/user/47888)

**for authorization issues either:**

- Using an authorized user account (UN & PW ) which is actually configured within the app itself.
- You can create authorization header to avoid such failures.

 ![2024-10-08_15h59_56.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/5/8571cb7a74ecd3d2d36f833a82604e311865568f.png)

- Another way is create a credential vault with the authorized access credentials (UN && PW) and save it in credential vaults, this issue should be resolved.

KR,

Peter
