---
title: Charmhub | Deploy Opensearch K8S using Charmhub - The Open Operator Collection
description: Deploy the latest version of Opensearch K8S as a Kubernetes Operator
  on any cloud.
url: https://charmhub.io/opensearch-k8s/docs/h-configure-s3
---

# Opensearch K8S

[Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")

* [Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")

Platform:

2/edge 22

```
juju deploy opensearch-k8s --channel 2/edge
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

All commands are written for `juju v.3.1.7 +`

# How to configure S3 storage

This guide will teach you how to deploy and configure the [S3 Integrator charm](https://charmhub.io/s3-integrator) for [AWS S3](https://aws.amazon.com/s3/), send the configurations to the Charmed OpenSearch application, and update it. The same procedure can be extended to use Ceph RadosGW.

---

## [Configure S3 for AWS](https://charmhub.io/opensearch-k8s/docs/h-configure-s3#p-31539-configure-s3-for-aws)

First, deploy and run the [`s3-integrator`](https://charmhub.io/s3-integrator) charm:

```
juju deploy s3-integrator
juju run s3-integrator/leader sync-s3-credentials \
    access-key=<access-key-here> secret-key=<secret-key-here>
```

> See all other configuration parameters in the [Configuration section](https://charmhub.io/s3-integrator/configuration) of the s3-integrator documentation.

The Amazon S3 endpoint must be specified as `s3.<region>.amazonaws.com` within the first 24 hours of creating the bucket. For older buckets, the endpoint `s3.amazonaws.com` can be used. See [this AWS forum post](https://repost.aws/knowledge-center/s3-http-307-response) for more information.

## [Configure S3 for Ceph RadosGW](https://charmhub.io/opensearch-k8s/docs/h-configure-s3#p-31539-configure-s3-for-ceph-radosgw)

First, deploy and run the [`s3-integrator`](https://charmhub.io/s3-integrator) charm:

```
juju deploy s3-integrator

juju run s3-integrator/leader \
    sync-s3-credentials \
    access-key=<access-key-here> \
    secret-key=<secret-key-here>
```

> Ceph can be configured with a custom `region` name, or set as `default` if none was chosen. See the Ceph docs for More information about [RadosGW configuration](https://docs.ceph.com/en/latest/man/8/radosgw-admin/).

Then, use `juju config` to add your configuration parameters. For example:

```
juju config s3-integrator \
    endpoint="https://<CEPH_RADOSGW_URL>" \
    bucket="<bucket_name>" \
    path="<path_to_instance>" \
    region="<region>"
```

## [Integrate with Charmed OpenSearch](https://charmhub.io/opensearch-k8s/docs/h-configure-s3#p-31539-integrate-with-charmed-opensearch)

To pass these configurations to Charmed OpenSearch, integrate the two applications:

```
juju integrate s3-integrator opensearch
```

---
