This repository contains all the definitions for the Bee storage snapshots used by the Swarm Team.
We're using helmsman to manage the deployments to our Kubernetes cluster. You can learn more about Helmsman's desired state specification.
- Kubernetes 1.15
- Helm 3.0
- Helmsman 3.0
- Helm diff (>=1.6.0) .
- jq (expected that binary is named
jq
, notjq-linux
etc) .
For initial deployment of isolated Bee cluster execute:
$ NAMESPACE=storage-snapshot ./install.sh init
It will execute helmsman-dsf/init.yaml
Helmsman DSF file.
Helmsman DSF files use official Bee Helm Chart and custom Ethereum Geth Chart, 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.
๐ด Use .env.example
to create .env
and specify your AWS account ID inside .env
file using export AWS_ACCOUNT_ID=
For exporting all cluster data Bee and Geth nodes:
$ 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.
For importing all cluster data Bee and Geth nodes:
$ NAMESPACE=storage-snapshot ./install.sh export latest
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
To destroy everything run:
$ NAMESPACE=storage-snapshot ./uninstall.sh
To deploy/undeploy load test alone use these commands
NAMESPACE=testnet-gateway helmsman -apply -subst-env-values -f ./helmsman-dsf/init.yaml -target=beekeeper-load-test
NAMESPACE=testnet-gateway helmsman -destroy -subst-env-values -f ./helmsman-dsf/init.yaml -target=beekeeper-load-test