Skip to content

Commit

Permalink
website: upgrade, adjust for s3gw-tech org
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Eduardo Luis <[email protected]>
  • Loading branch information
jecluis committed Mar 16, 2024
1 parent 225a20e commit 04d12b3
Show file tree
Hide file tree
Showing 40 changed files with 15,966 additions and 2,749 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16.x
cache: yarn
node-version: 21.x
cache: npm

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Build website
run: yarn build
run: npm run build

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
Expand All @@ -29,7 +29,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./build
cname: s3gw.io
cname: s3gw.tech
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16.x
cache: yarn
node-version: 21.x
cache: npm

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Test build website
run: yarn build
run: npm run build
4 changes: 2 additions & 2 deletions blog/2022-07-22-sg3w-is-in-town.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This is the first publicly available iteration of the s3gw project. We expect (a

We would love to hear from you about what you'd like to see on our roadmap. What would enable you best to use s3gw in your environment?

Reach out to us at <[email protected]> or our [Slack channel](https://aquaristlabs.slack.com/archives/C03RFG0BES0). You can also join [our mailing list](https://lists.suse.com/mailman/listinfo/s3gw) or have a look at our [GitHub repository](https://github.com/aquarist-labs/s3gw) -- feature requests are welcome! 🙂
Reach out to us at [[email protected]](mailto:[email protected]) or have a look at our [GitHub repository][1] -- feature requests are welcome! 🙂

[1]:https://github.com/aquarist-labs/s3gw
[1]:https://github.com/s3gw-tech/s3gw
[2]:https://docs.ceph.com/en/quincy/radosgw/
89 changes: 57 additions & 32 deletions blog/2022-07-28-pv-s3-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,49 @@ Increased demand for cloud storage solutions has become a crucial topic in recen

<!--truncate-->

:::warning

This content was adapted from the original `aquarist-labs` organization to the
new `s3gw-tech` organization. Some of it, especially screenshots, may contain
`aquarist-labs` references. Keep that in mind when following tutorials.

:::

Increased demand for cloud storage solutions has become a crucial topic in recent years: companies are requiring data to be made more readily available for their cloud-native applications.

In a cloud-native environment, it is important to offer storage systems that can interact with clients using a standard protocol.

## Simple Storage Service

![S3 logo](https://www.suse.com/c/wp-content/uploads/2022/07/s3.png)
![S3 logo](/blog-assets/2022-07-28/s3.png)

[Simple Storage Service,](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html) or S3, is a protocol designed by Amazon that launched in the United States market in 2006. S3 is a vast protocol that covers key concepts such as *buckets**objects**keys**versioning**ACLs* and *regions*.
[Simple Storage Service](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html), or S3, is a protocol designed by Amazon that launched in the United States market in 2006. S3 is a vast protocol that covers key concepts such as *buckets**objects**keys**versioning**ACLs* and *regions*.

To continue with this article, you need to know that the S3 API can be invoked with REST calls and that you can just store your objects inside holders called buckets. For more information, there are other resources available online.

##  K3s and Rancher

This article explores the use of [K3s](https://k3s.io/) and [Rancher](https://rancher.com/) as foundations for experiments with an S3 gateway.

![K3S logo](https://www.suse.com/c/wp-content/uploads/2022/05/k3s-icon-color-1-300x245.png)
![K3S logo](/blog-assets/2022-07-28/k3s-icon-color-1-300x245.png)

K3s is a lightweight Kubernetes distribution that runs smoothly on Edge low resource devices. Rancher is a graphical user manager that simplifies the underlying complexity of a Kubernetes cluster.

![Rancher logo](https://www.suse.com/c/wp-content/uploads/2022/05/rancher-logo-cow-black.png)
![Rancher logo](/blog-assets/2022-07-28/rancher-logo-cow-black.png)

With Rancher, you can manage a cluster in a user-friendly fashion, regardless of the Kubernetes version being used.

## Longhorn

![Longhorn logo](https://www.suse.com/c/wp-content/uploads/2022/07/longhorn.png)
![Longhorn logo](/blog-assets/2022-07-28/longhorn.png)

A Kubernetes cluster and manager alone are not sufficient when dealing with cloud storage. You could use the primitive resources offered by a standard Kubernetes cluster such as the basic persistent volume types, but we recommend installing a component that takes care of providing your pods with some advanced storage resource.

It is desirable to have a system that can take care of your data securely and in a redundant fasion and expose volumes with the standard Kubernetes interfaces. [Longhorn](https://longhorn.io/) is the right system for this kind of need. Built from scratch to work natively with Kubernetes, Longhorn allows pods to obtain highly available persistent volumes. The portion of storage managed by Longhorn is replicated so that a hardware failure does not compromise user's data.

## S3 Gateway

![S3GW logo](https://www.suse.com/c/wp-content/uploads/2022/07/logo-s3gw-300x256.png)
![S3GW logo](/blog-assets/2022-07-28/logo-s3gw-300x256.png)

Having Longhorn deployed on your cluster allows the persistent volumes to be consumed by internal applications deployed on Kubernetes. If you want to give access to the data to external clients, you need an S3 gateway.

Expand Down Expand Up @@ -100,7 +108,7 @@ After this, you will be able to operate on K3s with your user.

### Install Helm

![Helm logo](https://www.suse.com/c/wp-content/uploads/2022/07/helm-260x300.png)
![Helm logo](/blog-assets/2022-07-28/helm-260x300.png)

We are going to install Rancher using an [Helm](https://helm.sh/) chart, so you must first install Helm on the system:

Expand Down Expand Up @@ -163,44 +171,49 @@ helm install rancher rancher-latest/rancher\
--set bootstrapPassword=admin
```

When Rancher's pods have booted up,  with your browser you can navigate to: <https://rancher.local> and complete the initial setup:
When Rancher's pods have booted up,  with your browser you can navigate to: [https://rancher.local](https://rancher.local) and complete the initial setup:

![Screenshot 1](https://www.suse.com/c/wp-content/uploads/2022/07/rancher1-1024x943.png)
![Screenshot 1](/blog-assets/2022-07-28/rancher1-1024x943.png)

Once you have completed the step, and saved the password, you can start exploring your local cluster with the graphical manager:

![Screenshot 2](https://www.suse.com/c/wp-content/uploads/2022/07/rancher.local_-1024x614.png)
![Screenshot 2](/blog-assets/2022-07-28/rancher.local_-1024x614.png)

Depending on what you have deployed on the cluster, you could see more or less resource consumption.

### Deploy Longhorn

You can now deploy Longhorn using the Charts chooser under the Apps section on the left of the Rancher's dashboard:

![](https://www.suse.com/c/wp-content/uploads/2022/07/rancher3-1024x727.png)
![Another Screenshot](/blog-assets/2022-07-28/rancher3-1024x727.png)

The installation is pretty straightforward and you don't need to change any
default value of the chart.

The installation is pretty straightforward and you don't need to change any default value of the chart.\
In the end, if everything has gone well, you should see the Rancher's console showing:

![Screenshot 3](https://www.suse.com/c/wp-content/uploads/2022/07/ranch-longh-install-1024x596.png)
![Screenshot 3](/blog-assets/2022-07-28/ranch-longh-install-1024x596.png)

After Longhorn has been installed, you can simply click on the Longhorn entry on the left Rancher's menu to be redirected to the Longhorn's dashboard:

![](https://www.suse.com/c/wp-content/uploads/2022/07/long-dash-1024x651.png)
![Another Screenshot 2](/blog-assets/2022-07-28/long-dash-1024x651.png)

A freshly installation of Longhorn shows that still no application is using a persistent volume.

### Deploy s3gw

You are now ready to add the last ingredient to your system: s3gw, the S3 gateway.\
Rancher does not bundle with the [Helm repository of s3gw](https://github.com/aquarist-labs/s3gw-charts) set by default, so you must add it from the dashboard:
You are now ready to add the last ingredient to your system: s3gw, the S3
gateway.

Rancher does not bundle with the [Helm repository of s3gw](https://github.com/s3gw-tech/s3gw-charts) set by default, so you must add it from the dashboard:

![Screenshot 4](/blog-assets/2022-07-28/s3gw-repo-add-1024x608.png)

![Screenshot 4](https://www.suse.com/c/wp-content/uploads/2022/07/s3gw-repo-add-1024x608.png)
You can choose an unique name: for example: s3gw.

You can choose an unique name: for example: s3gw.\
For the Target field you have to choose Git repository and the repository URL:

<https://github.com/aquarist-labs/s3gw-charts>
[https://github.com/s3gw-tech/s3gw-charts](https://github.com/s3gw-tech/s3gw-charts)

In the Git Branch field put the latest available release:

Expand All @@ -209,31 +222,43 @@ v0.2.0
You can now click on Create button.\
On Apps section, you can now find the s3gw chart:

![Screenshot 5](https://www.suse.com/c/wp-content/uploads/2022/07/s3gw-chart-1024x630.png)
![Screenshot 5](/blog-assets/2022-07-28/s3gw-chart-1024x630.png)

So let's proceed with installation; you can choose a namespace and a name for s3gw:

![Screenshot 6](https://www.suse.com/c/wp-content/uploads/2022/07/s3gw-ns1-1024x657.png)
![Screenshot 6](/blog-assets/2022-07-28/s3gw-ns1-1024x657.png)

You don't need to customize the chart, so you can leave the bottom checkbox
unchecked.

You don't need to customize the chart, so you can leave the bottom checkbox unchecked.\
Once the installation completed, if everything has gone well, you should see the Rancher's console showing:

![Screenshot 7](https://www.suse.com/c/wp-content/uploads/2022/07/s3gw-installed-1024x774.png)
![Screenshot 7](/blog-assets/2022-07-28/s3gw-installed-1024x774.png)

On Longhorn dashboard, you can verify that the application is using a Longhorn persistent volume:

![Screenshot 8](https://www.suse.com/c/wp-content/uploads/2022/07/lh-s3gw-1024x480.png)
![Screenshot 8](/blog-assets/2022-07-28/lh-s3gw-1024x480.png)

### Test the S3 gateway

By default the s3gw chart configures an ingress resource pointing to the S3 gateway with the FQDN: s3gw.local .\
By default the s3gw chart configures an ingress resource pointing to the S3
gateway with the FQDN: s3gw.local .

Thus, you must define s3gw.local in /etc/hosts pointing to the ip address of one of the host's physical interfaces, for example:

10.0.0.2 s3gw.local

For testing the S3 gateway you can rely on [s3cmd](https://github.com/s3tools/s3cmd) that is a popular command line S3 client.\
You can install it choosing a method listed [here](https://github.com/s3tools/s3cmd/blob/master/INSTALL.md).\
Once you have installed it, you can take the s3cmd configuration file from [here](https://raw.githubusercontent.com/aquarist-labs/s3gw-core/main/env/s3cmd.cfg) and use that as it is against s3gw.\
For testing the S3 gateway you can rely
on [s3cmd](https://github.com/s3tools/s3cmd) that is a popular command line S3
client.

You can install it choosing a method
listed [here](https://github.com/s3tools/s3cmd/blob/master/INSTALL.md).

Once you have installed it, you can take the s3cmd configuration file
from [here](https://raw.githubusercontent.com/s3gw-tech/s3gw/main/tools/env/s3cmd.cfg) and
use that as it is against s3gw.

All you need to to is to create a directory, put s3cmd.cfg inside that and finally invoke s3cmd.

#### Create a bucket
Expand All @@ -244,14 +269,14 @@ $ s3cmd -c s3cmd.cfg mb s3://foo

#### Put some objects in the bucket

Let's create a 1mb file filled with random data and put it in the  bucket:
Let's create a 1 MB file filled with random data and put it in the  bucket:

```bash
$ dd if=/dev/random bs=1k count=1k of=obj.1mb.bin
$ s3cmd -c s3cmd.cfg put obj.1mb.bin s3://foo
```

Let's create a 10mb file filled with random data and put it in the bucket:
Let's create a 10 MB file filled with random data and put it in the bucket:

```bash
$ dd if=/dev/random bs=1k count=10k of=obj.10mb.bin
Expand All @@ -278,6 +303,6 @@ In this tutorial, you've seen how to set up a K3s cluster, manage it with Ranche

## Call to action

We would love to hear from you about what you'd like to see on our roadmap. What would enable you best to use s3gw in your environment? 
We would love to hear from you about what you'd like to see on our roadmap. What would enable you best to use s3gw in your environment?

Reach out to us at <[email protected]> or our [Slack channel](https://aquaristlabs.slack.com/archives/C03RFG0BES0). You can also join [our mailing list](https://lists.suse.com/mailman/listinfo/s3gw) or have a look at our [GitHub repository](https://github.com/aquarist-labs/s3gw) -- feature requests are welcome! 🙂
Reach out to us at [[email protected]](mailto:[email protected]) or have a look at our [GitHub repository](https://github.com/s3gw-tech/s3gw) -- feature requests are welcome! 🙂
28 changes: 18 additions & 10 deletions blog/2022-11-21-introduction-to-s3gw.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,23 @@ s3gw is an S3-compatible service focused on deployments in a Kubernetes environm

<!--truncate-->

s3gw is based on Ceph's RADOSGW (RGW) but runs as a stand--alone service without the RADOS cluster and relies on a storage backend still under heavy development by the storage team at SUSE. The s3gw team is also developing a web-based UI for management and an object explorer. 
s3gw is based on Ceph's RADOSGW (RGW) but runs as a stand--alone service without the RADOS cluster and relies on a storage backend still under heavy development by the storage team at SUSE. The s3gw team is also developing a web-based UI for management and an object explorer.

:::warning

This content was adapted from the original `aquarist-labs` organization to the
new `s3gw-tech` organization. Some of it, especially screenshots, may contain
`aquarist-labs` references. Keep that in mind when following tutorials.

:::

## The s3gw service

Distributed as a small container, the s3gw service runs RGW and exposes an S3-compatible API. Instead of requiring a full Ceph cluster deployment, we leverage RGW's standalone capabilities and keep data on a local storage volume. Although the focus is on running within a Kubernetes environment with on-premise storage provided to the container, s3gw can consume any storage type with a filesystem on it. This can be PVC in Kubernetes or a local directory on a development machine. 
Distributed as a small container, the s3gw service runs RGW and exposes an S3-compatible API. Instead of requiring a full Ceph cluster deployment, we leverage RGW's standalone capabilities and keep data on a local storage volume. Although the focus is on running within a Kubernetes environment with on-premise storage provided to the container, s3gw can consume any storage type with a filesystem on it. This can be PVC in Kubernetes or a local directory on a development machine.

As the container consumes the storage volume, the object data is kept in a hash tree of directories and the metadata is kept in an SQLite database. This allows us to leverage the ACID properties of SQLite to ensure the state is committed atomically while keeping large blobs of data on the filesystem and away from SQLite's path. 

In the future, we will release a blog post describing the s3gw service's data store in more depth. 
In the future, we will release a blog post describing the s3gw service's data store in more depth.

However, it should be noted that we don't support all RGW's S3 APIs. Some components are still under development and other features not yet included that are required for proper operation. 

Expand All @@ -34,22 +42,22 @@ Also distributed as a small container, the s3gw web UI provides an intuitive way

We have a few screenshots of the current UI version below, but please keep in mind that we are still actively developing it and it is not feature-complete.

![s3gw login page screenshot](https://www.suse.com/c/wp-content/uploads/2022/11/s3gw-login-1-1024x747.png)
![s3gw dashboard screenshot](https://www.suse.com/c/wp-content/uploads/2022/11/s3gw-dashboard-1-1024x747.png)
![s3gw bucket creation](https://www.suse.com/c/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-15.49.46-1024x751.png)
![s3gw bucket list dashboard screeenshot](https://www.suse.com/c/wp-content/uploads/2022/11/s3gw-list-buckets-1024x747.png)
![s3gw file explorer](https://www.suse.com/c/wp-content/uploads/2022/11/s3gw-file-explorer-1-1024x747.png)
![s3gw login page screenshot](/blog-assets/2022-11-21/s3gw-login-1-1024x747.png)
![s3gw dashboard screenshot](/blog-assets/2022-11-21/s3gw-dashboard-1-1024x747.png)
![s3gw bucket creation](/blog-assets/2022-11-21/Screenshot-2022-11-21-at-15.49.46-1024x751.png)
![s3gw bucket list dashboard screeenshot](/blog-assets/2022-11-21/s3gw-list-buckets-1024x747.png)
![s3gw file explorer](/blog-assets/2022-11-21/s3gw-file-explorer-1-1024x747.png)

##  Installing

You may find our Helm chart helpful if you have a Kubernetes cluster, whichever flavor that might be. You'll be able to find it on [ArtifactHub](https://artifacthub.io/packages/helm/s3gw/s3gw), and our [documentation](https://s3gw-docs.readthedocs.io/en/latest/helm-charts/) can provide important insights as to available configuration values. 

Alternatively, if you are using Rancher, you may find s3gw available in the Partner repository, as depicted below:

![Partner repository](https://www.suse.com/c/wp-content/uploads/2022/11/Screenshot-2022-11-21-at-16.04.15-1024x372.png)
![Partner repository](/blog-assets/2022-11-21/Screenshot-2022-11-21-at-16.04.15-1024x372.png)

## Call for action

We would love to hear from you about what you'd like to see on our roadmap. What would enable you best to use s3gw in your environment? 

Reach out to us at <[email protected]> or our [Slack channel](https://aquaristlabs.slack.com/archives/C03RFG0BES0). You can also join [our mailing list](https://lists.suse.com/mailman/listinfo/s3gw) or have a look at our [GitHub repository](https://github.com/aquarist-labs/s3gw) -- feature requests are welcome! 🙂
Reach out to us at [[email protected]](mailto:[email protected]) or have a look at our [GitHub repository](https://github.com/s3gw-tech/s3gw) -- feature requests are welcome! 🙂
Loading

0 comments on commit 04d12b3

Please sign in to comment.