bitcoind

by Helm

Helm chartv0.3.2App 0.23.0

Bitcoin is an innovative payment network and a new kind of money.

About this chart

Bitcoind

Note: This was migrated from helm/stable as that repository has been deprecated.

Bitcoin uses peer-to-peer technology to operate with no central authority or banks; managing transactions and the issuing of bitcoins is carried out collectively by the network.

Introduction

This chart bootstraps a single node Bitcoin deployment on a Kubernetes cluster using the Helm package manager. Docker image was taken from Bitcoind for Docker - many thanks!

Prerequisites

  • Kubernetes 1.8+
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release stable/bitcoind

The command deploys bitcoind on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

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.

Configuration

The following table lists the configurable parameters of the bitcoind chart and their default values.

ParameterDescriptionDefault
image.repositoryImage source repository namearilot/docker-bitcoind
image.tagbitcoind release tag.0.17.1
image.pullPolicyImage pull policyIfNotPresent
service.rpcPortRPC port8332
service.p2pPortP2P port8333
service.testnetPortTestnet port18332
service.testnetP2pPortTestnet p2p ports18333
service.selectorNode selectortx-broadcast-svc
persistence.enabledCreate a volume to store datatrue
persistence.accessModeReadWriteOnce or ReadOnlyReadWriteOnce
persistence.sizeSize of persistent volume claim300Gi
resourcesCPU/Memory resource requests/limits{}
configurationFileConfig file ConfigMap entry
terminationGracePeriodSecondsWait time before forcefully terminating container30

For more information about Bitcoin configuration please see Bitcoin.conf_Configuration_File.

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 stable/bitcoind

Tip: You can use the default values.yaml

Persistence

The bitcoind image stores the Bitcoind node data (Blockchain and wallet) and configurations at the /bitcoin path of the container.

By default a PersistentVolumeClaim is created and mounted into that directory. In order to disable this functionality you can change the values.yaml to disable persistence and use an emptyDir instead.

"An emptyDir volume is first created when a Pod is assigned to a Node, and exists as long as that Pod is running on that node. When a Pod is removed from a node for any reason, the data in the emptyDir is deleted forever."

!!! WARNING !!!

Please NOT use emptyDir for production cluster! Your wallets will be lost on container restart!

Customize bitcoind configuration file

configurationFile:
  bitcoind.conf: |-
    server=1
    printtoconsole=1
    rpcuser=rpcuser
    rpcpassword=rpcpassword

Deploy bitcoind with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has bitcoind 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartbitcoind is pinned at v0.3.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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