https://github.com/ethersphere/storage-snapshot
https://github.com/ethersphere/storage-snapshot
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ethersphere/storage-snapshot
- Owner: ethersphere
- Created: 2022-05-27T16:32:52.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-15T09:20:17.000Z (about 4 years ago)
- Last Synced: 2025-04-08T18:50:39.160Z (about 1 year ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bee storage snapshot
This repository contains all the definitions for the Bee storage snapshots used by the Swarm Team.
We're using [helmsman](https://github.com/Praqma/helmsman) to manage the deployments to our Kubernetes cluster. You can learn more about Helmsman's [desired state specification](https://github.com/Praqma/helmsman/blob/master/docs/desired_state_specification.md).
## Prerequisites
* Kubernetes 1.15
* Helm 3.0
* Helmsman 3.0
* Helm diff (>=1.6.0) [.](https://github.com/databus23/helm-diff)
* jq (expected that binary is named `jq`, not `jq-linux` etc) [.](https://github.com/stedolan/jq)
## Installing
### Init
For initial deployment of isolated Bee cluster execute:
```bash
$ NAMESPACE=storage-snapshot ./install.sh init
```
It will execute `helmsman-dsf/init.yaml` Helmsman DSF file.
Helmsman DSF files use official [Bee Helm Chart](https://github.com/ethersphere/helm/tree/master/charts/bee) and custom [Ethereum Geth Chart](https://github.com/ethersphere/helm/tree/master/charts/geth-swap), and both are deployed in the same Kubernetes namespace.
**Note:** Everyone should update name of the namespace to avoid overlapping with others if working on the same Kubernetes cluster.
:red_circle: Specify your AWS account ID inside `.env` file using `export AWS_ACCOUNT_ID=`
### Export
For exporting all cluster data Bee and Geth nodes:
```bash
$ NAMESPACE=storage-snapshot ./install.sh export latest
```
**Note:** By default it will use version `latest`, if you specify custom version (it can bee whatever single string) cluster data will be uploaded to both, custom version and latest.
### Import
For importing all cluster data Bee and Geth nodes:
```bash
$ NAMESPACE=storage-snapshot ./install.sh import latest
```
## Configuration
Configuration parameters can be set in 2 ways:
* in the Helmsman DSF files, with the field **set** inside `./helmsman-dsf` folder
* in the Helm values files inside `./helm-values` folder
### Uninstall
To destroy everything run:
```bash
$ NAMESPACE=storage-snapshot ./uninstall.sh
```