# Re-Adding Kubernetes Cluster

**URL:** <https://community.dynatrace.com/t/re-adding-kubernetes-cluster/35076>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [May 9, 2022, 7:25am UTC](https://community.dynatrace.com/t/re-adding-kubernetes-cluster/35076 "2022-05-09T07:25:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathias\_indermu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mathias_indermu/32/7162_2.png) [@mathias\_indermu](https://community.dynatrace.com/u/mathias_indermu)\
**Post date:** [May 9, 2022, 7:25am UTC](https://community.dynatrace.com/t/re-adding-kubernetes-cluster/35076/1 "2022-05-09T07:25:14Z")

</div>

I’m using the dynakube.yaml and kubectl to instrument my kubernetes cluster. The kubernetes cluster is an ondemand setup - which means its getting provisioned and de-provisioned every day.

Now I have an issue with re-adding the cluster with the same name in dynatrace, after installing the dynatrace deployment I get insight into hosts etc. but no cluster is registered for the kubernetes monitoring.  
If I change the name, I’ll get a new cluster immediately.

How can I deploy a kubernetes cluster fresh and “join” it to dynatrace as the same cluster?  
At host level there is this “--set-host-id-source=fqdn” for example.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [May 9, 2022, 7:56am UTC](https://community.dynatrace.com/t/re-adding-kubernetes-cluster/35076/2 "2022-05-09T07:56:42Z")

</div>

Hello&nbsp;[@mathias\_indermu](https://community.dynatrace.com/user/12550)&nbsp;,

did you try to connect the customer manually instead of the containerized activegate? I suppose your cluster gets new ID on each provisioning, so the IDs won’t match. But you will need to enter the bearer token anyway (it is doable using API) too. But you will need an activegate outside of kubernetes and network connection to the K8S API.
