# Cloud-Native setup in non-privileged Kubernetes cluster

**URL:** <https://community.dynatrace.com/t/cloud-native-setup-in-non-privileged-kubernetes-cluster/48356>\
**Category:** Container platforms\
**Tags:** dynatrace-operator, kubernetes\
**Created:** [October 16, 2024, 6:40am UTC](https://community.dynatrace.com/t/cloud-native-setup-in-non-privileged-kubernetes-cluster/48356 "2024-10-16T06:40:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukas\_Lorinc](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@Lukas\_Lorinc](https://community.dynatrace.com/u/Lukas_Lorinc)\
**Post date:** [October 16, 2024, 6:40am UTC](https://community.dynatrace.com/t/cloud-native-setup-in-non-privileged-kubernetes-cluster/48356/1 "2024-10-16T06:40:06Z")

</div>

Hi everybody,

On last Friday (11th), we were attempting to deploy Dynatrace-operator 1.3.0 cloud-native via helm deployment.

The deployment was “stalled” by a requirement for privileged mode in the cluster:

Error: UPGRADE FAILED: release dynatrace-operator failed, and has been rolled back due to atomic being set: failed to create resource: DaemonSet.apps “dynatrace-oneagent-csi-driver” is invalid: [spec.template.spec.containers[0].volumeMounts.mountPropagation: Forbidden: Bidirectional mount propagation is available only to privileged containers, spec.template.spec.containers[1].volumeMounts.mountPropagation: Forbidden: Bidirectional mount propagation is available only to privileged containers]

We tried to bypass this with some labeling on the Dynatrace namespace (Dynatrace documentation):

Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dynatrace

Labels:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [kubernetes.io/metadata.name=dynatrace](http://kubernetes.io/metadata.name=dynatrace)

[pod-security.kubernetes.io/audit=privileged](http://pod-security.kubernetes.io/audit=privileged)

[pod-security.kubernetes.io/enforce=privileged](http://pod-security.kubernetes.io/enforce=privileged)

[pod-security.kubernetes.io/warn=privileged](http://pod-security.kubernetes.io/warn=privileged)

Annotations:&nbsp; \<none\>

Status:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Active

This did not have the desired effect. Does anybody have similiar issue in the past?

Best regards,

Lukas

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [October 16, 2024, 8:02am UTC](https://community.dynatrace.com/t/cloud-native-setup-in-non-privileged-kubernetes-cluster/48356/2 "2024-10-16T08:02:27Z")

</div>

Hi&nbsp;[@Lukas\_Lorinc](https://community.dynatrace.com/user/43077),

One of my clients follow these steps, they also used helm on OKD. Have you done the #2?

# Dynatrace cloudnativefullstack install on OKD 4.16

# 1. install CSI driver ([GitHub - Dynatrace/dynatrace-operator: Automate Kubernetes observability with Dynatrace · GitHub](https://github.com/Dynatrace/dynatrace-operator))  
oc create namespace dynatrace  
oc apply -f [https://github.com/Dynatrace/dynatrace-operator/releases/latest/download/kubernetes.yaml](https://github.com/Dynatrace/dynatrace-operator/releases/latest/download/kubernetes.yaml)

# 2. add label to csidriver  
oc label csidriver [csi.oneagent.dynatrace.com](http://csi.oneagent.dynatrace.com) [security.openshift.io/csi-ephemeral-volume-profile=restricted](http://security.openshift.io/csi-ephemeral-volume-profile=restricted)

# 3. install the Dynakube instance with CloudnativeFullstack mode:  
oc apply -f dynakube-cloudnativefullstack.yaml

I hope it helps.

Best regards,

Mizső
