2017-08-05 13:07:54 +02:00
|
|
|
## Note: data values do NOT have to be base64-encoded in this file.
|
2017-06-09 14:32:39 +02:00
|
|
|
|
2017-06-08 17:41:38 +02:00
|
|
|
## vars is common environment variables for this BigchaindB node
|
2017-04-21 14:41:12 +02:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
2017-05-24 14:45:27 +02:00
|
|
|
name: vars
|
2017-04-21 14:41:12 +02:00
|
|
|
namespace: default
|
|
|
|
data:
|
2018-03-15 16:20:15 +01:00
|
|
|
# node-fqdn is the DNS name registered for your HTTPS certificate.
|
|
|
|
node-fqdn: "bdb.example.com"
|
2017-07-17 13:46:05 +02:00
|
|
|
|
2018-03-15 16:20:15 +01:00
|
|
|
# node-frontend-port is the port number on which this node's services
|
2017-07-17 13:46:05 +02:00
|
|
|
# are available to external clients.
|
2018-03-15 16:20:15 +01:00
|
|
|
node-frontend-port: "443"
|
2017-07-17 13:46:05 +02:00
|
|
|
|
2018-03-20 19:34:01 +01:00
|
|
|
# node-health-check-port is the port number on which an external load
|
2017-07-17 13:46:05 +02:00
|
|
|
# balancer can check the status/liveness of the external/public server.
|
2017-07-17 18:59:11 +02:00
|
|
|
# In our deployment, Kubernetes sends 'livenessProbes' to this port and
|
|
|
|
# interprets a successful response as a 'healthy' service.
|
2018-03-20 19:34:01 +01:00
|
|
|
node-health-check-port: "8888"
|
2017-07-17 13:46:05 +02:00
|
|
|
|
2018-03-20 19:34:01 +01:00
|
|
|
# node-dns-server-ip is the IP of the DNS server. A Kubernetes deployment
|
2018-03-26 15:37:05 +02:00
|
|
|
# always has a DNS server (kube-dns).
|
|
|
|
node-dns-server-ip: "<IP address of node's DNS server, e.g. 10.0.0.10>"
|
2017-07-17 13:46:05 +02:00
|
|
|
|
2018-03-26 15:37:05 +02:00
|
|
|
# mdb-instance-name is the name of the MongoDB instance in this Kubernetes cluster.
|
2017-05-24 14:45:27 +02:00
|
|
|
mdb-instance-name: "<name of the mdb instance>"
|
2017-07-17 13:46:05 +02:00
|
|
|
|
2018-03-26 15:37:05 +02:00
|
|
|
# ngx-instance-name is the name of the NGINX instance in this Kubernetes cluster.
|
2017-07-17 13:46:05 +02:00
|
|
|
ngx-instance-name: "<name of the nginx instance>"
|
|
|
|
|
|
|
|
# openresty-instance-name is the name of the OpenResty instance in this
|
2018-03-26 15:37:05 +02:00
|
|
|
# Kubernetes cluster.
|
2017-07-17 13:46:05 +02:00
|
|
|
openresty-instance-name: "<name of the openresty instance>"
|
|
|
|
|
2018-03-26 15:37:05 +02:00
|
|
|
# bdb-instance-name is the name of the BigchainDB instance in this Kubernetes cluster.
|
2017-05-24 14:45:27 +02:00
|
|
|
bdb-instance-name: "<name of the bdb instance>"
|
2017-07-17 13:46:05 +02:00
|
|
|
|
|
|
|
# mdb-mon-instance-name is the name of the MongoDB Monitoring Agent instance
|
2018-03-26 15:37:05 +02:00
|
|
|
# in this Kubernetes cluster.
|
2017-05-24 14:45:27 +02:00
|
|
|
mdb-mon-instance-name: "<name of the mdb monitoring agent instance>"
|
2017-07-17 13:46:05 +02:00
|
|
|
|
|
|
|
# ngx-mdb-instance-name is the FQDN of the MongoDB instance in this
|
|
|
|
# Kubernetes cluster.
|
|
|
|
ngx-mdb-instance-name: "<name of the mdb instance>.default.svc.cluster.local"
|
|
|
|
|
2017-07-21 12:05:18 +02:00
|
|
|
# ngx-openresty-instance-name is the FQDN of the OpenResty instance in this
|
2017-07-17 13:46:05 +02:00
|
|
|
# Kubernetes cluster.
|
|
|
|
ngx-openresty-instance-name: "<name of the openresty instance>.default.svc.cluster.local"
|
|
|
|
|
|
|
|
# ngx-bdb-instance-name is the FQDN of the BigchainDB instance in this
|
|
|
|
# Kubernetes cluster.
|
|
|
|
ngx-bdb-instance-name: "<name of the bdb instance>.default.svc.cluster.local"
|
|
|
|
|
|
|
|
# mongodb-backend-port is the port on which MongoDB is actually
|
|
|
|
# available/listening for requests.
|
|
|
|
mongodb-backend-port: "27017"
|
|
|
|
|
2018-04-26 11:37:41 +02:00
|
|
|
# TODO: Change `openresty` to `apicast`
|
2017-07-17 13:46:05 +02:00
|
|
|
# openresty-backend-port is the port number on which OpenResty is listening
|
|
|
|
# for requests. This is used by the NGINX instance to forward the requests to
|
|
|
|
# the right port, and by OpenResty instance to bind to the correct port to
|
|
|
|
# receive requests from NGINX instance.
|
2018-04-26 11:37:41 +02:00
|
|
|
openresty-backend-port: "8080"
|
2017-07-17 13:46:05 +02:00
|
|
|
|
2017-07-17 17:29:51 +02:00
|
|
|
# BigchainDB configuration parameters
|
|
|
|
# Refer https://docs.bigchaindb.com/projects/server/en/latest/server-reference/configuration.html
|
|
|
|
|
2017-07-17 13:46:05 +02:00
|
|
|
# bigchaindb-api-port is the port number on which BigchainDB is listening
|
|
|
|
# for HTTP requests.
|
|
|
|
bigchaindb-api-port: "9984"
|
|
|
|
|
2017-07-17 17:29:51 +02:00
|
|
|
# bigchaindb-server-bind is the socket where BigchainDB binds for API
|
|
|
|
# requests.
|
|
|
|
bigchaindb-server-bind: "0.0.0.0:9984"
|
|
|
|
|
|
|
|
# bigchaindb-ws-port and bigchaindb-ws-interface form the socket where
|
|
|
|
# BigchainDB binds for Websocket connections.
|
2017-07-17 13:46:05 +02:00
|
|
|
bigchaindb-ws-port: "9985"
|
2017-07-17 17:29:51 +02:00
|
|
|
bigchaindb-ws-interface: "0.0.0.0"
|
|
|
|
|
|
|
|
# bigchaindb-database-name is the database collection used by BigchainDB with
|
|
|
|
# the MongoDB backend.
|
|
|
|
bigchaindb-database-name: "bigchain"
|
|
|
|
|
2017-08-09 09:40:41 +02:00
|
|
|
# bigchaindb-wsserver-advertised-scheme is the protocol used to access the
|
|
|
|
# WebSocket API in BigchainDB; can be 'ws' or 'wss' (default).
|
|
|
|
bigchaindb-wsserver-advertised-scheme: "wss"
|
|
|
|
|
2017-09-27 14:40:12 +02:00
|
|
|
# Optional: Optimize storage engine(wired tiger)
|
|
|
|
# cache size. e.g. (2048MB, 2GB, 1TB), otherwise
|
|
|
|
# it will use the default cache size; i.e. max((50% RAM - 1GB), 256MB)
|
|
|
|
storage-engine-cache-size: ""
|
|
|
|
|
2018-02-23 16:00:36 +01:00
|
|
|
# POST API authorization mode [threescale | secrete-token]
|
|
|
|
authorization-mode: "threescale"
|
|
|
|
|
2017-04-21 14:41:12 +02:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
2017-07-03 15:55:43 +02:00
|
|
|
name: bdb-config
|
2017-04-21 14:41:12 +02:00
|
|
|
namespace: default
|
|
|
|
data:
|
2017-07-03 15:55:43 +02:00
|
|
|
# BigchainDB instance authentication user name
|
|
|
|
bdb-user: "<user name>"
|
2017-07-17 13:46:05 +02:00
|
|
|
|
2017-07-21 12:05:18 +02:00
|
|
|
# bigchaindb-database-maxtries is the maximum number of times that BigchainDB
|
|
|
|
# will try to establish a connection with the database backend.
|
|
|
|
# If it is set to 0, then it will try forever.
|
|
|
|
bigchaindb-database-maxtries: "3"
|
|
|
|
|
|
|
|
# bigchaindb-database-connection-timeout is the maximum number of
|
|
|
|
# milliseconds that BigchainDB will wait before closing the connection while
|
|
|
|
# connecting to the database backend.
|
|
|
|
bigchaindb-database-connection-timeout: "5000"
|
|
|
|
|
|
|
|
# bigchaindb-log-level is the log level used to log to the console.
|
2017-08-09 09:40:41 +02:00
|
|
|
bigchaindb-log-level: "debug"
|
2018-01-02 14:47:36 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: tendermint-config
|
|
|
|
namespace: default
|
|
|
|
data:
|
2018-04-30 17:42:14 +02:00
|
|
|
# bdb-persistent-peers is the list of all the peers in the network.
|
|
|
|
bdb-persistent-peers: "<',' separated list of all tendermint peers in the network>"
|
2018-01-02 14:47:36 +01:00
|
|
|
|
2018-04-27 15:54:47 +02:00
|
|
|
# bdb-validators is the list of all validators in the network.
|
|
|
|
bdb-validators: "<',' separated list of all validators in the network>"
|
2018-01-02 14:47:36 +01:00
|
|
|
|
2018-04-27 15:54:47 +02:00
|
|
|
# bdb-validator-power is the validators voting power, make sure the order and
|
2018-01-02 14:47:36 +01:00
|
|
|
# the number of nodes in tm-validator-power and tm-validators is the same.
|
2018-04-27 15:54:47 +02:00
|
|
|
bdb-validator-power: "<',' separated list of validator power of each node in the network>"
|
2018-01-02 14:47:36 +01:00
|
|
|
|
2018-04-27 15:54:47 +02:00
|
|
|
# bdb-genesis-time is the official time of blockchain start.
|
2018-01-02 14:47:36 +01:00
|
|
|
# example: 0001-01-01T00:00:00Z
|
2018-04-27 15:54:47 +02:00
|
|
|
bdb-genesis-time: "<timestamp of blockchain start>"
|
2018-01-02 14:47:36 +01:00
|
|
|
|
2018-04-27 15:54:47 +02:00
|
|
|
# bdb-chain-id is the ID of the blockchain. Must be unique for every blockchain.
|
2018-01-02 14:47:36 +01:00
|
|
|
# example: test-chain-KPI1Ud
|
2018-04-27 15:54:47 +02:00
|
|
|
bdb-chain-id: "<ID of the blockchain>"
|
2018-01-02 14:47:36 +01:00
|
|
|
|
2018-04-27 15:54:47 +02:00
|
|
|
# bdb-abci-port is used by Tendermint Core for ABCI traffic. BigchainDB nodes
|
2018-01-02 14:47:36 +01:00
|
|
|
# use that internally.
|
2018-07-10 14:16:02 +02:00
|
|
|
bdb-abci-port: "26658"
|
2018-01-02 14:47:36 +01:00
|
|
|
|
2018-04-27 15:54:47 +02:00
|
|
|
# bdb-p2p-port is used by Tendermint Core to communicate with
|
2018-01-02 14:47:36 +01:00
|
|
|
# other peers in the network. This port is accessible publicly.
|
2018-07-10 14:16:02 +02:00
|
|
|
bdb-p2p-port: "26656"
|
2018-01-02 14:47:36 +01:00
|
|
|
|
2018-04-27 15:54:47 +02:00
|
|
|
# bdb-rpc-port is used by Tendermint Core to rpc. BigchainDB nodes
|
2018-01-02 14:47:36 +01:00
|
|
|
# use this port internally.
|
2018-07-10 14:16:02 +02:00
|
|
|
bbd-rpc-port: "26657"
|
2018-01-02 14:47:36 +01:00
|
|
|
|
2018-04-27 15:54:47 +02:00
|
|
|
# bdb-pub-key-access is the port number used to host/publish the
|
2018-01-02 14:47:36 +01:00
|
|
|
# public key of the tendemrint node in this cluster.
|
2018-04-27 15:54:47 +02:00
|
|
|
bdb-pub-key-access: "9986"
|
2018-02-26 03:37:43 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: mdb-config
|
|
|
|
namespace: default
|
|
|
|
data:
|
|
|
|
# User name for MongoDB adminuser
|
|
|
|
mdb-admin-username: "<mongodb admin username>"
|
|
|
|
|
|
|
|
# MongoDB monitoring agent authentication user name
|
|
|
|
mdb-mon-user: "<mongodb monitoring agent username>"
|