# Use a sidecar container

> **Note:**
> This feature is currently experimental and may change in future releases.

If you deploy Datalore On-Premises using Kubernetes, you can configure its agents to run as a pod with two containers that share a file system: an unprivileged agent container and a privileged sidecar container.

In this setup, the sidecar system container uses FUSE to mount WebDAV and data sources as local filesystems, exposing them to the container running the notebook agent via shared volumes. Unless you use [Reactive mode](use-reactive-mode.html), the container that runs the notebook agent does not require elevated privileges.

> **Warning:**
> [Reactive mode](use-reactive-mode.html) is not compatible with this type of deployment.

Procedure: Configure a sidecar agent

1. Add a volume to the pod:

```YAML
- id: sidecar-agent
  ...
  yaml:
    ...
    volumes:
    - name: sidecar-agent-volume
      emptyDir: { }
```

2. In the agent container, add the `SIDECAR_PORT` and `SIDECAR_MOUNT_ENABLED` environment variables:

```YAML
...
  containers:
    - name: datalore-agent
      image: jetbrains/datalore-agent:2026.3
      env:
        - name: SIDECAR_PORT
          value: "8088"
        - name: SIDECAR_MOUNT_ENABLED
          value: "true"
      volumeMounts:
        - name: sidecar-agent-volume
          mountPath: /data
          mountPropagation: HostToContainer
```

3. Add the sidecar container to the pod:

```YAML
- name: sidecar-mounter
  repository: jetbrains/datalore-sidecar-mounter:2026.3
  pullPolicy: IfNotPresent
  versionOverride: ""
  ports:
    - containerPort: 8088
      name: sidecar-port
  env:
    - name: SIDECAR_PORT
      value: "8088"
  securityContext:
    privileged: true
  volumeMounts:
    - name: sidecar-agent-volume
      mountPath: /data
      mountPropagation: Bidirectional
```

> **Note:**
> * Make sure that `containerPort` matches `SIDECAR_PORT` in the agent and sidecar container configuration.
>
> * Make sure you mount the shared volume to `/data` in `volumeMounts` in both containers.

