Kubernetes: Application only with CSI

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.

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

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

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:

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

But In your case you need two commands:

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

README - operator link:*If using cloudNativeFullStack or applicationMonitoring with CSI driver, the following command is required as well:*Regards,Alex Romanenkov