# Terraform OneAgent Operator

**URL:** <https://community.dynatrace.com/t/terraform-oneagent-operator/20388>\
**Category:** Open Q&A\
**Tags:** account-management, oneagent, tips-and-tricks, kubernetes\
**Created:** [April 18, 2019, 11:54am UTC](https://community.dynatrace.com/t/terraform-oneagent-operator/20388 "2019-04-18T11:54:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaefferlein](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kaefferlein/32/9820_2.png) [@kaefferlein](https://community.dynatrace.com/u/kaefferlein)\
**Post date:** [April 18, 2019, 11:54am UTC](https://community.dynatrace.com/t/terraform-oneagent-operator/20388/1 "2019-04-18T11:54:08Z")

</div>

Hi,

we are currently using terraform to describe our infrastructure and k8 cluster within google cloud.

Now we want to use the OneAgent operator and it would be great if we could use terraform here as well.

Has anyone already done this and could give me a hint on how to do this?

Thanks a lot,  
Anna

---

<div class="post-metadata">

**Author:** ![rodrigo\_alvare1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rodrigo_alvare1/32/1927_2.png) [@rodrigo\_alvare1](https://community.dynatrace.com/u/rodrigo_alvare1)\
**Post date:** [April 18, 2019, 2:31pm UTC](https://community.dynatrace.com/t/terraform-oneagent-operator/20388/2 "2019-04-18T14:31:21Z")

</div>

Hello,

As far as I know there is no Dynatrace official script to perform a OneAgent Deployment using terraform.

In github you can find some projects around this topic, for example

[Sample terraform module for deploying Dynatrace OneAgent using IBM Cloud Automation Manager](https://github.com/millerkc/template_integration_dynatrace)

Regards

---

<div class="post-metadata">

**Author:** ![kaefferlein](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kaefferlein/32/9820_2.png) [@kaefferlein](https://community.dynatrace.com/u/kaefferlein)\
**Post date:** [April 30, 2019, 9:03am UTC](https://community.dynatrace.com/t/terraform-oneagent-operator/20388/3 "2019-04-30T09:03:15Z")

</div>

Hi,

this one does not help me unfortunately.

Because the operator pods require a kubeconfig and for this I need some help. But maybe this is more of a terraform / operator issue here.

---

<div class="post-metadata">

**Author:** ![kaefferlein](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kaefferlein/32/9820_2.png) [@kaefferlein](https://community.dynatrace.com/u/kaefferlein)\
**Post date:** [August 20, 2019, 7:12am UTC](https://community.dynatrace.com/t/terraform-oneagent-operator/20388/4 "2019-08-20T07:12:51Z")

</div>

Just wanted to let you know that we were able to deploy the oneagent operator via terraform 🙂

Just creating all resources via terraform if possible or for the custom resource via local-exec and kubectl apply.

The kubeconfig issue was solved by simply writing a local file 🙂

So issue can be closed here 🙂

---

<div class="post-metadata">

**Author:** ![Alejandro-Hdez](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Alejandro-Hdez](https://community.dynatrace.com/u/Alejandro-Hdez)\
**Post date:** [July 17, 2024, 2:29pm UTC](https://community.dynatrace.com/t/terraform-oneagent-operator/20388/5 "2024-07-17T14:29:50Z")

</div>

[@kaefferlein](https://community.dynatrace.com/user/20283)&nbsp;can you share the references you use to do this?  
Thanks, regards

---

<div class="post-metadata">

**Author:** ![bdarga](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@bdarga](https://community.dynatrace.com/u/bdarga)\
**Post date:** [May 12, 2025, 4:28pm UTC](https://community.dynatrace.com/t/terraform-oneagent-operator/20388/6 "2025-05-12T16:28:21Z")

</div>

[@kaefferlein](https://community.dynatrace.com/user/20283)&nbsp;Hi, could you please provide the reference if possible. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![SaiLakshmi](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@SaiLakshmi](https://community.dynatrace.com/u/SaiLakshmi)\
**Post date:** [June 6, 2025, 11:16am UTC](https://community.dynatrace.com/t/terraform-oneagent-operator/20388/7 "2025-06-06T11:16:22Z")

</div>

Hi&nbsp;[@kaefferlein](https://community.dynatrace.com/user/20283)&nbsp;, [@bdarga](https://community.dynatrace.com/user/90271)&nbsp;Could you share the Reference you used to&nbsp;deploy the One Agent operator via terraform.
