# Kubernetes: Application only with CSI

**URL:** <https://community.dynatrace.com/t/kubernetes-application-only-with-csi/36849>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [October 11, 2022, 8:28am UTC](https://community.dynatrace.com/t/kubernetes-application-only-with-csi/36849 "2022-10-11T08:28:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patmis](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patmis/32/23678_2.png) [@patmis](https://community.dynatrace.com/u/patmis)\
**Post date:** [October 11, 2022, 8:28am UTC](https://community.dynatrace.com/t/kubernetes-application-only-with-csi/36849/1 "2022-10-11T08:28:50Z")

</div>

Hi Community,

I try to configure Kubernetes monitoring in application only mode. With useCSIDriver set to false, it appears to work. However, we want to be economical with ressources and therefore use the CSI driver. But when we set the useCSIDriver to true, we get an error during the deployment.

```markup
Failed sync attempt to 46a85cacec3ee5d518a44c0bd07b33de9cfd16d6: one or more objects failed to apply, reason: admission webhook "webhook.dynatrace.com" denied the request: 1 error(s) found in the Dynakube 1. The Dynakube's specification requires the CSI driver to work. Make sure you deployed the correct manifests. (retried 5 times).

```

I checked with the K8s-Team and they told me that the CSI driver is enabled.

Has somebody encountered similar issues and resolved them?

Help is much appreciated!

Thank you,

Patrick

---

<div class="post-metadata">

**Author:** ![patmis](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patmis/32/23678_2.png) [@patmis](https://community.dynatrace.com/u/patmis)\
**Post date:** [November 10, 2022, 8:02am UTC](https://community.dynatrace.com/t/kubernetes-application-only-with-csi/36849/2 "2022-11-10T08:02:44Z")

</div>

Hi Community!  
No suggestions for this question?  
Regards,  
Patrick

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Al3x](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_al3x/32/36257_2.png) [@Romanenkov\_Al3x](https://community.dynatrace.com/u/Romanenkov_Al3x)\
**Post date:** [February 12, 2024, 2:27pm UTC](https://community.dynatrace.com/t/kubernetes-application-only-with-csi/36849/3 "2024-02-12T14:27:38Z")

</div>

Hello Patrick.

Reproduced this issue.

| Error from server (Forbidden): error when creating "\*.yaml": admission webhook "webhook.dynatrace.com" denied the request:  
1 error(s) found in the Dynakube  
1. The Dynakube's specification requires the CSI driver to work. Make sure you deployed the correct manifests. |

For k8s installation you need only 1 command:

```auto
kubectl apply -f https://github.com/Dynatrace/dynatrace-operator/releases/latest/download/kubernetes.yaml

```

But In your case you need two commands:

```auto
kubectl apply -f https://github.com/Dynatrace/dynatrace-operator/releases/latest/download/kubernetes.yaml

```

```auto
<font color="#FF0000"><strong>kubectl apply -f https://github.com/Dynatrace/dynatrace-operator/releases/latest/download/kubernetes-csi.yaml</strong></font>

```

_[README - operator link](https://github.com/Dynatrace/dynatrace-operator#:~:text=applicationMonitoring%20with%20CSI%20driver):_\*If using&nbsp;cloudNativeFullStack&nbsp;or&nbsp;applicationMonitoring&nbsp;with CSI driver, the following command is required as well:\*Regards,Alex Romanenkov
