# Automate renewal of dynatrace-webhook-certs on Kubernetes

**URL:** <https://community.dynatrace.com/t/automate-renewal-of-dynatrace-webhook-certs-on-kubernetes/37715>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [December 15, 2022, 1:54pm UTC](https://community.dynatrace.com/t/automate-renewal-of-dynatrace-webhook-certs-on-kubernetes/37715 "2022-12-15T13:54:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![n002213f](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/n002213f/32/16467_2.png) [@n002213f](https://community.dynatrace.com/u/n002213f)\
**Post date:** [December 15, 2022, 1:54pm UTC](https://community.dynatrace.com/t/automate-renewal-of-dynatrace-webhook-certs-on-kubernetes/37715/1 "2022-12-15T13:54:51Z")

</div>

I have 2 AKS clusters: **1.19.11** and **1.24.6**.

On **1.19.11** &nbsp;I have the Dynatrace OneAgent installed by Dynatrace Operator **0.5.1.**

On **1.24.6** I have the Dynatrace OneAgent installed by Dynatrace Operator 0.10.0

On cluster 1.19.11 I have noted that the&nbsp;dynatrace-webhook-certs are automatically getting rotated/renewed once expired

On cluster 1.24.6, the same cert is not getting rotated/renewed once expired.

---

<div class="post-metadata">

**Author:** ![n002213f](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/n002213f/32/16467_2.png) [@n002213f](https://community.dynatrace.com/u/n002213f)\
**Post date:** [December 29, 2022, 7:18am UTC](https://community.dynatrace.com/t/automate-renewal-of-dynatrace-webhook-certs-on-kubernetes/37715/2 "2022-12-29T07:18:34Z")

</div>

There was a simple fundamental flaw in our migration. We moved all objects we had noted in the 1.19.11 cluster, this including&nbsp;dynatrace-webhook-certs. The operator will not renew the certs they already exist. We removed the certs and let the operator create them and the issue is resolved.
