---
metadata:
  - name: generator
    content: Diplodoc Platform v5.51.0
  - property: og:title
    content: Uploading snapshots to Cypress
  - property: og:description
    content: The instructions below describe how to configure the delivery of snapshots to Cypress
  - property: og:type
    content: article
  - property: og:url
    content: https://ytsaurus.tech/docs/en/admin-guide/persistence-uploader
  - property: article:tag
    content: k8s
  - property: article:modified_time
    content: '2025-11-18T16:00:00+03:00'
  - property: article:author
    content: Ilya Ibraev
alternate:
  - https://e2e.viewer-test.ydocs.io/en/admin-guide/persistence-uploader.md
  - https://e2e.viewer-test.ydocs.io/ru/admin-guide/persistence-uploader.md
  - href: https://e2e.viewer-test.ydocs.io/en/admin-guide/persistence-uploader.md
    type: text/markdown
    title: Markdown version
  - href: https://e2e.viewer-test.ydocs.io/en/llms.txt?revision=ytsaurus-test-revision5
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://e2e.viewer-test.ydocs.io/en/llms.txt?revision=ytsaurus-test-revision5


<!-- source: en/_includes/admin-guide/persistence-uploader.md -->
## Uploading snapshots to Cypress { #uploading-snapshots-to-cypress }

Some parts of the system require master snapshots.

To do this, the YTsaurus k8s operator, starting from version 0.28.0, supports uploading master snapshots to Cypress. A special sidecar container is used for this — [Hydra Persistence Uploader](https://github.com/ytsaurus/ytsaurus/tree/main/yt/docker/sidecars/hydra_persistence_uploader).

{% note warning %}

The sidecar will upload the following files to Cypress, which will consume cluster disk space:

- Master binary (with replication, at least ~15 GB)
- Master snapshots

Make sure that the `sys` account has enough free space to store this data.

{% endnote %}

In the cluster specification, in the `primaryMasters` section, you need to specify the image for `hydraPersistenceUploader`:

{% note info %}

Applying these changes will trigger a full cluster update with downtime, similar to a regular master update.

{% endnote %}

```yaml
spec:
  primaryMasters:
    hydraPersistenceUploader:
      image: ghcr.io/ytsaurus/sidecars:0.0.1
```

### Normal operation of the sidecar

- The status of the container named `hydra-persistence-uploader` is `Running`.

```
kubectl -n <namespace> get pod ms-0 \
  -o jsonpath='{.status.containerStatuses[?(@.name=="hydra-persistence-uploader")].state}'
```

- The master binary is uploaded to `//sys/admin/snapshots/meta`:

```
yt list //sys/admin/snapshots/meta | grep master_binary
```

- Snapshots and changelogs of the master are uploaded to `//sys/admin/snapshots/<cell_id>/snapshots`:

```
yt list //sys/admin/snapshots/1/snapshots
yt list //sys/admin/snapshots/1/changelogs
```

### Troubleshooting

To view the sidecar logs, run:

```
kubectl -n <namespace> logs ms-0 -c hydra-persistence-uploader
```
<!-- endsource: en/_includes/admin-guide/persistence-uploader.md -->
