# Rename dynakube-activegate-0

**URL:** <https://community.dynatrace.com/t/rename-dynakube-activegate-0/44194>\
**Category:** Container platforms\
**Tags:** activegate, dynatrace-operator, kubernetes\
**Created:** [February 20, 2024, 9:42am UTC](https://community.dynatrace.com/t/rename-dynakube-activegate-0/44194 "2024-02-20T09:42:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [February 20, 2024, 9:42am UTC](https://community.dynatrace.com/t/rename-dynakube-activegate-0/44194/1 "2024-02-20T09:42:00Z")

</div>

Hi Folks,

Previously I saw a community post about this topic but I have not found it.

Can anybody share it again?

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [February 20, 2024, 10:55am UTC](https://community.dynatrace.com/t/rename-dynakube-activegate-0/44194/2 "2024-02-20T10:55:15Z")

</div>

You can change ActiveGate names to some extent. The names are generated, but they always follow a certain pattern: \<DynaKube.metadata.name\>-activegate-#.

The name can be set in the metadata of the DynaKube custom resource:

```auto
apiVersion: dynatrace.com/v1beta1
kind: DynaKube
metadata:
 name: my-name
 namespace: dynatrace
...

```

The first ActiveGate pod will then be named like this: my-name-activegate-0

But be aware, that your secrets (API Token and PaaS Token), should also be named like that, or you need to pass the actual name into the cr.yaml tokens field.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [February 20, 2024, 11:04am UTC](https://community.dynatrace.com/t/rename-dynakube-activegate-0/44194/3 "2024-02-20T11:04:53Z")

</div>

Hi&nbsp;[@PacoPorro](https://community.dynatrace.com/user/40713),

Thanks for your switf response.

Best regards,

Mizső
