# GKE Autopilot DTO Cloud-native installation

**URL:** <https://community.dynatrace.com/t/gke-autopilot-dto-cloud-native-installation/45546>\
**Category:** Container platforms\
**Tags:** google-cloud-platform, dynatrace-operator, kubernetes\
**Created:** [May 13, 2024, 12:58pm UTC](https://community.dynatrace.com/t/gke-autopilot-dto-cloud-native-installation/45546 "2024-05-13T12:58:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcinciripini](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dcinciripini/32/20416_2.png) [@dcinciripini](https://community.dynatrace.com/u/dcinciripini)\
**Post date:** [May 13, 2024, 12:58pm UTC](https://community.dynatrace.com/t/gke-autopilot-dto-cloud-native-installation/45546/1 "2024-05-13T12:58:33Z")

</div>

Hi everyone 🙂  
we encountered a issue installing DTO 1.1 on Cloud-Native mode on GKE w autopilot when tryied to install CSI-driver:

_Error from server (GKE Warden constraints violations): error when creating “[https://github.com/Dynatrace/dynatrace-operator/releases/download/v1.1.0/kubernetes-csi.yaml](https://github.com/Dynatrace/dynatrace-operator/releases/download/v1.1.0/kubernetes-csi.yaml)”: admission webhook “[warden-validating.common-webhooks.networking.gke.io](http://warden-validating.common-webhooks.networking.gke.io)” denied the request: GKE Warden rejected the request because it violates one or more constraints. Violations details: {“[denied by autogke-disallow-privilege]”:[“container server is privileged; not allowed in Autopilot”,“container provisioner is privileged; not allowed in Autopilot”],“[denied by autogke-no-write-mode-hostpath]”:[“hostPath volume plugin-dir in container server is accessed in write mode; disallowed in Autopilot.”,“hostPath volume mountpoint-dir in container server is accessed in write mode; disallowed in Autopilot.”,“hostPath volume data-dir in container server is accessed in write mode; disallowed in Autopilot.”,“hostPath volume data-dir in container provisioner is accessed in write mode; disallowed in Autopilot.”,“hostPath volume plugin-dir in container registrar is accessed in write mode; disallowed in Autopilot.”,“hostPath volume registration-dir in container registrar is accessed in write mode; disallowed in Autopilot.”,“hostPath volume plugin-dir in container liveness-probe is accessed in write mode; disallowed in Autopilot.”,“hostPath volume data-dir in container csi-init is accessed in write mode; disallowed in Autopilot.”]}_

reading Dynatrace and GKE documentation&nbsp;about Autopilot Pod Security I found this links:

> **[Apply Pod Security Standards](https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/guides/networking-security-compliance/security-configurations/pod-security-standards)**
>
> Configure Pod Security Standards for the Dynatrace namespace and monitored application namespaces that receive CSI-injected pods.

[Misure di sicurezza di GKE Autopilot &nbsp;|&nbsp; GKE security &nbsp;|&nbsp; Google Cloud Documentation](https://cloud.google.com/kubernetes-engine/docs/concepts/autopilot-security?hl=it#autopilot-psswhere) seems to be impossible installing pods with privileged permission: autopilot GKE doesn’t allow setting privileged criterion on namespace.This means that we can’t install OA and CSI-driver (pod w privileged permission required) on GKE autopilot except using this workaround (v0.12)?  
[https://community.dynatrace.com/t5/Heads-up-from-Dynatrace/CSI-Driver-pods-with-Dynatrace-Operator-0-13-0-rejected-by/ta-p/222415](https://community.dynatrace.com/topic/222415)

Thanks everyone,  
Davide

---

<div class="post-metadata">

**Author:** ![dcinciripini](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dcinciripini/32/20416_2.png) [@dcinciripini](https://community.dynatrace.com/u/dcinciripini)\
**Post date:** [May 15, 2024, 9:46am UTC](https://community.dynatrace.com/t/gke-autopilot-dto-cloud-native-installation/45546/2 "2024-05-15T09:46:31Z")

</div>

Searching again we found this&nbsp;[article](https://www.dynatrace.com/news/blog/dynatrace-and-google-unleash-cloud-native-observability-for-gke-autopilot/%20)&nbsp;where:  
- is explained that GKE autopilot installation is possible using Helm

- is linked Dynatrace documentation about&nbsp;[application observability (by Helm)](https://docs.dynatrace.com/docs/shortlink/installation-k8s-automated-apponly#helm)

So I suppose that, for the installation:  
- We need to use “Installation with additional configuration of the Helm chart” using&nbsp;[values.yaml](https://github.com/Dynatrace/dynatrace-operator/blob/v1.0.1/config/helm/chart/default/values.yaml)&nbsp;where we can specify platform: gke-autopilot

- We can install only in application observability mode

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [June 21, 2024, 6:34pm UTC](https://community.dynatrace.com/t/gke-autopilot-dto-cloud-native-installation/45546/3 "2024-06-21T18:34:51Z")

</div>

Hi [@dcinciripini](https://community.dynatrace.com/user/45345) where you able to resolve this?

What have you changed on the values.yaml template file?

Thanks.

---

<div class="post-metadata">

**Author:** ![dcinciripini](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dcinciripini/32/20416_2.png) [@dcinciripini](https://community.dynatrace.com/u/dcinciripini)\
**Post date:** [July 1, 2024, 10:29am UTC](https://community.dynatrace.com/t/gke-autopilot-dto-cloud-native-installation/45546/4 "2024-07-01T10:29:46Z")

</div>

Hi&nbsp;[dannemca](https://community.dynatrace.com/user/18264),  
we managed to solve it by installing the Kubernetes.yaml via Manifest in [Application-observability classic mode](https://docs.dynatrace.com/docs/shortlink/installation-k8s-automated-app-monitoring#manifest),&nbsp;the only way that GKE-autopilot offers for installation because OA is not a privileged pod allowed, without CSI-driver. Theorically it’s possible installing CSI-driver because of [Google-Dynatrace partnership](https://cloud.google.com/kubernetes-engine/docs/resources/autopilot-partners#allowlisted-partner-workloads) but we encountered again the same problem trying to install it, so we preferred to install without it to accelarate the operations. By the way we have been informed that other Dynatrace customers succeded with CSI-driver.

I hope that this answer&nbsp;help you a little bit! I would be curious to know if you can install with CSI-driver 🙂

---

<div class="post-metadata">

**Author:** ![ian\_cervantez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ian_cervantez/32/10167_2.png) [@ian\_cervantez](https://community.dynatrace.com/u/ian_cervantez)\
**Post date:** [July 5, 2024, 10:06pm UTC](https://community.dynatrace.com/t/gke-autopilot-dto-cloud-native-installation/45546/5 "2024-07-05T22:06:03Z")

</div>

In [Dynatrace for GKE Autopilot](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-k8s/installation/supported-technologies#gke-autopilot), the&nbsp;[Google-Dynatrace partnership](https://cloud.google.com/kubernetes-engine/docs/resources/autopilot-partners#allowlisted-partner-workloads)&nbsp;“Allowlisted Autopilot partner workloads” only pertains to containers hosted in the following repositories:

```markup
gcr.io/dynatrace-marketplace-prod/dynatrace-operator:<version>
docker.io/dynatrace/dynatrace-operator:<version>

```

So, when applying with helm you will need to specify imageRef.repository (like so):

```markup
helm upgrade --install dynatrace-operator oci://public.ecr.aws/dynatrace/dynatrace-operator \
    --create-namespace \
    --namespace dynatrace \
    --atomic \
    --set "platform=gke-autopilot" \
    --set "imageRef.repository=docker.io/dynatrace/dynatrace-operator" \
    --set "csidriver.enabled=true"

```

Or, with a values.yaml file override.

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [July 8, 2024, 3:46pm UTC](https://community.dynatrace.com/t/gke-autopilot-dto-cloud-native-installation/45546/6 "2024-07-08T15:46:25Z")

</div>

Thank you [@dcinciripini](https://community.dynatrace.com/user/45345) and [@ian\_cervantez](https://community.dynatrace.com/user/12503) for your updates… indeed, I could deploy the operator with CIS enabled.

But I have one question… were you able to deploy the oneagents in your nodes? Or the dynakube was the application only?

I tried to use the full one, and got this error

```markup
Message: A problem occurred when using the Kubernetes API: admission webhook "warden-validating.common-webhooks.networking.gke.io" denied the request: GKE Warden rejected the request because it violates one or more constraints.
Violations details: {"[denied by autogke-default-linux-capabilities]":["linux capability 'DAC_READ_SEARCH,NET_ADMIN,SYS_ADMIN,SYS_RESOURCE' on container 'dynatrace-oneagent' not allowed; Autopilot only allows the capabilities: 'AUDIT_WRITE,CHOWN,DAC_OVERRIDE,FOWNER,FSETID,KILL,MKNOD,NET_BIND_SERVICE,NET_RAW,SETFCAP,SETGID,SETPCAP,SETUID,SYS_CHROOT,SYS_PTRACE'."],"[denied by autogke-disallow-hostnamespaces]":["enabling hostPID is not allowed in Autopilot.","enabling hostNetwork is not allowed in Autopilot."],"[denied by autogke-no-write-mode-hostpath]":["hostPath volume host-root used in container dynatrace-oneagent uses path / which is not allowed in Autopilot. Allowed path prefixes for hostPath volumes are: [/var/log/]."]}

```

Thanks

---

<div class="post-metadata">

**Author:** ![ian\_cervantez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ian_cervantez/32/10167_2.png) [@ian\_cervantez](https://community.dynatrace.com/u/ian_cervantez)\
**Post date:** [August 7, 2024, 9:31pm UTC](https://community.dynatrace.com/t/gke-autopilot-dto-cloud-native-installation/45546/7 "2024-08-07T21:31:36Z")

</div>

Yeah, Dynakube can only be configured for application only monitoring mode.&nbsp; And that’s all you need with autopilot, since you can’t control the worker nodes anyway.

I was able to configure dynakube for classic monitoring mode, but I didn’t run that for very long so I don’t know if that’s 100% stable.

```markup
apiVersion: dynatrace.com/v1beta2
kind: DynaKube
spec:
  activeGate:
    capabilities:
    - routing
    - kubernetes-monitoring
    - dynatrace-api
    group: <GROUP_NAME_HERE>
    replicas: 1
    resources:
      limits:
        cpu: 1000m
        ephemeral-storage: 1Gi
        memory: 1.5Gi
      requests:
        cpu: 1000m
        ephemeral-storage: 1Gi
        memory: 1.5Gi
  apiUrl: https://{environmentid}.live.dynatrace.com/api
  dynatraceApiRequestThreshold: 15
  metadataEnrichment:
    enabled: true
  networkZone: <NETWORK_ZONE_NAME_HERE>
  oneAgent:
    applicationMonitoring:
      namespaceSelector: {}
      useCSIDriver: true
  skipCertCheck: false

```

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [August 8, 2024, 5:00pm UTC](https://community.dynatrace.com/t/gke-autopilot-dto-cloud-native-installation/45546/8 "2024-08-08T17:00:40Z")

</div>

Thanks, [@ian\_cervantez](https://community.dynatrace.com/user/12503)
