bee
by Ethersphere
Ethereum Swarm Bee Helm chart for Kubernetes
About this chart
Bee Helm Chart
Ethereum Swarm Bee is an experiment to abstract libp2p as underlay networking for Ethereum Swarm.
Prerequisites
Make sure you have Helm installed installed.
Get Repo Info
helm repo add ethersphere https://ethersphere.github.io/helm
helm repo update
See helm repo for command documentation.
QuickStart
$ helm install --generate-name ethersphere/bee
Introduction
This chart bootstraps a Bee node. It creates ConfigMap, Deployment and Service Kubernetes objects, while Ingress and ServiceAccount are optional.
Prerequisites
- Kubernetes 1.15
- Helm 3.0
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release ethersphere/bee
The command deploys Bee on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Upgrading the Chart
$ helm upgrade my-release ethersphere/bee --install
To 0.12.0
Version 0.12.0 adds new secret object, password is moved to an independent secret object and mounted inside container in statefulset.
Before you update please execute the following command to delete all statefullsets, but preserving running bee containers.
kubectl delete statefulsets.apps -l app.kubernetes.io/name=bee --cascade=orphan
Configuration
The default configuration values for this chart are listed in values.yaml.
Bee specific configuration parameters can be configured in beeConfig section.
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
$ helm install --name my-release \
--set serviceAccount.create=true \
ethersphere/bee
The above command creates ServiceAccount for the deployment.
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
$ helm install --name my-release -f values.yaml ethersphere/bee
Helmsman Usage
Prerequisites
- Kubernetes 1.15
- Helm 3.0
- Helmsman 3.0
Installing
with already existing bootnode
Create bee.yaml file as shown bellow:
namespaces:
bee:
helmRepos:
ethersphere: "https://ethersphere.github.io/helm"
apps:
bee:
name: bee
namespace: bee
description: "Ethereum Swarm Bee"
chart: "ethersphere/bee"
version: "0.11.2"
enabled: true
set:
beeConfig.bootnode: # bootnode multi address
replicaCount: 2
wait: true
timeout: 120
Execute following command:
$ helmsman -apply -f bee.yaml
with first pod as a bootnode
Create bee.yaml file as shown bellow:
namespaces:
bee:
helmRepos:
ethersphere: "https://ethersphere.github.io/helm"
apps:
bee:
name: bee
namespace: bee
description: "Ethereum Swarm Bee"
chart: "ethersphere/bee"
version: "0.11.2"
enabled: true
set:
beeConfig.bootnode: "/dns4/bee-0-headless.bee.svc.cluster.local/tcp/1634/p2p/16Uiu2HAm6i4dFaJt584m2jubyvnieEECgqM2YMpQ9nusXfy8XFzL"
libp2pSettings.enabled: true
replicaCount: 3
wait: true
timeout: 120
Execute following command:
$ helmsman -apply -f bee.yaml
Uninstalling
Execute following command:
$ helmsman -destroy -f bee.yaml
Deploy bee with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has bee on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartbee is pinned at v0.17.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply