# Deploy Dynakube Using a YAML Configuration File

**URL:** <https://community.dynatrace.com/t/deploy-dynakube-using-a-yaml-configuration-file/40903>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [July 27, 2023, 3:20pm UTC](https://community.dynatrace.com/t/deploy-dynakube-using-a-yaml-configuration-file/40903 "2023-07-27T15:20:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabianrojasvane](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@fabianrojasvane](https://community.dynatrace.com/u/fabianrojasvane)\
**Post date:** [July 27, 2023, 3:20pm UTC](https://community.dynatrace.com/t/deploy-dynakube-using-a-yaml-configuration-file/40903/1 "2023-07-27T15:20:14Z")

</div>

_Summary:&nbsp;This post explains how to deploy Dynakube using YAML manifests. It covers the structure of dynakube.yaml, required fields, and how it controls OneAgent injection and ActiveGate behavior._

Hello, I’m trying to deploy the dynakube.yaml file downloaded from here:

 ![fabianrojasvane_0-1690470799231.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/f/1f05d93fc149fde7579e4046651ce921303a4b2a.png)

but I’m getting the following error:

Error from server (InternalError): error when creating “dynakube.yaml”: Internal error occurred: failed calling webhook “[webhook.dynatrace.com](http://webhook.dynatrace.com)”: failed to call webhook: Post “[https://dynatrace-webhook.dynatrace.svc:443/validate?timeout=10s](https://dynatrace-webhook.dynatrace.svc:443/validate?timeout=10s)”: context deadline exceeded

This is on GKE, the previous step was completed successfully, also the service is responding and webhook pods to.

 ![fabianrojasvane_1-1690471001351.png](https://global.discourse-cdn.com/dynatrace/original/1X/d451197ac6a84e81ae87ede9b75839ad0a3baa33.png)

One thing I notice is that when deploying dynakube.yaml webhook pods doesn’t show requests on logs.

Any help will be helpful.

Thank you in advance

---

<div class="post-metadata">

**Author:** ![rkdy](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rkdy](https://community.dynatrace.com/u/rkdy)\
**Post date:** [August 3, 2023, 12:54am UTC](https://community.dynatrace.com/t/deploy-dynakube-using-a-yaml-configuration-file/40903/2 "2023-08-03T00:54:35Z")

</div>

This error looks like the one found in the Dynatrace Kubernetes Troubleshooting guide here:&nbsp;[Troubleshooting — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/kubernetes-troubleshoot-deprecated#error-when-applying-the-custom-resource-on-gke)

As suggested in the documentation: _“To fix this,&nbsp;[add a firewall rule](https://dt-url.net/5k03vyk)&nbsp;to explicitly allow ingress to port 8443.”_

---

<div class="post-metadata">

**Author:** ![adminApmosys](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@adminApmosys](https://community.dynatrace.com/u/adminApmosys)\
**Post date:** [February 17, 2025, 9:50am UTC](https://community.dynatrace.com/t/deploy-dynakube-using-a-yaml-configuration-file/40903/3 "2025-02-17T09:50:59Z")

</div>

Hii Rkdy ,

Facing the same issue on the AWS EKS could there be anyc hance we can add the 8443 there
