# Kubernetes cluster monitoring: Setup issue

**URL:** <https://community.dynatrace.com/t/kubernetes-cluster-monitoring-setup-issue/21692>\
**Category:** Container platforms\
**Tags:** installation, activegate, oneagent, kubernetes\
**Created:** [August 27, 2019, 2:56pm UTC](https://community.dynatrace.com/t/kubernetes-cluster-monitoring-setup-issue/21692 "2019-08-27T14:56:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerome\_cizeron](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@jerome\_cizeron](https://community.dynatrace.com/u/jerome_cizeron)\
**Post date:** [August 27, 2019, 2:56pm UTC](https://community.dynatrace.com/t/kubernetes-cluster-monitoring-setup-issue/21692/1 "2019-08-27T14:56:18Z")

</div>

Hello,

I have issue to make my ACtiveGAte communicate properly with the K8S cluster API.

I keep getting meesage "_There was an error with the TLS handshake. Check out the documentation for further information_. "

I have identified SSL exception in the logfile.

_2019-08-27 09:18:42 UTC INFO [\<mhs48859\>] [KubernetesFastCheck] Fastcheck failed for endpoint [https://ff-hp-aks-f06197f7.hcp.westeurope.azmk8s.io/api](https://ff-hp-aks-f06197f7.hcp.westeurope.azmk8s.io/api) with SSL exception sun.secu_

_rity.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targe_

_t [Suppressing further identical messages for 3600000 ms]_

What need to be done to be sure that the ACtiveGAte is not blocked anymore by this Security check ?

TIA

Jerome

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [August 27, 2019, 3:01pm UTC](https://community.dynatrace.com/t/kubernetes-cluster-monitoring-setup-issue/21692/2 "2019-08-27T15:01:54Z")

</div>

I think this is because ActiveGate can’t accept certificate you have on K8s. If it’s self signed or local it is possible to have issues like that. You need to add root certificate to AG, then everything should work fine:

> **[Trusted root certificates for ActiveGate](https://docs.dynatrace.com/docs/ingest-from/dynatrace-activegate/configuration/configure-trusted-root-certificates-on-activegate)**
>
> Learn how to configure custom trusted root certificates on ActiveGate to establish secure SSL/TLS connections.

Article above covers this topic. We’ve had same issues and this helped.

Sebastian

---

<div class="post-metadata">

**Author:** ![rswarnka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rswarnka/32/10979_2.png) [@rswarnka](https://community.dynatrace.com/u/rswarnka)\
**Post date:** [November 3, 2020, 5:01am UTC](https://community.dynatrace.com/t/kubernetes-cluster-monitoring-setup-issue/21692/3 "2020-11-03T05:01:41Z")

</div>

Hi [@Sebastian K.](https://answers.dynatrace.com/users/15061/view.html)

Facing the same certification issue:

We have the most of our active gates on-premise, and it seems the Azure Kubernetes cluster’s Kube-API server is not reachable from the active gates.

1. Could you please help me understand what kind of connectivity needs to be setup between the active gate and the KubeAPIServer OR between the ActiveGate and OneAgent PODs? I did not see this is not mentioned in documentation anywhere.

2. I am afraid if this shall require any modification at cluster level, would be hard to convince. What needs be done?

regards,

Rajesh

---

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [November 3, 2020, 2:58pm UTC](https://community.dynatrace.com/t/kubernetes-cluster-monitoring-setup-issue/21692/4 "2020-11-03T14:58:08Z")

</div>

You can disable the SSL Validation at the moment you setup the K8 Connection, is not the best… but is something. You also need to be able to reach the API endpoint of the K8.
