From ca3105b733433653eac68afccc954572925529c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A9=E3=82=89?= Date: Sat, 17 Nov 2018 03:25:48 +0900 Subject: [PATCH] Added geth rpcapi args (#9152) Signed-off-by: Taiga Nakayama --- stable/ethereum/Chart.yaml | 2 +- stable/ethereum/README.md | 1 + stable/ethereum/templates/geth-tx.deployment.yaml | 2 +- stable/ethereum/values.yaml | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stable/ethereum/Chart.yaml b/stable/ethereum/Chart.yaml index 572a13abcb..e1fa9e462e 100644 --- a/stable/ethereum/Chart.yaml +++ b/stable/ethereum/Chart.yaml @@ -1,5 +1,5 @@ name: ethereum -version: 0.1.3 +version: 0.1.4 description: private Ethereum network Helm chart for Kubernetes keywords: - ethereum diff --git a/stable/ethereum/README.md b/stable/ethereum/README.md index e798bfe5cd..7cd46272ab 100644 --- a/stable/ethereum/README.md +++ b/stable/ethereum/README.md @@ -80,6 +80,7 @@ The following table lists the configurable parameters of the vault chart and the | `geth.image.tag` | geth container image tag to deploy | `v1.7.3` | | `geth.tx.replicaCount` | geth transaction nodes replica count | `2` | | `geth.tx.service.type` | k8s service type for geth transaction nodes | `ClusterIP` | +| `geth.tx.args.rpcapi` | APIs offered over the HTTP-RPC interface | `eth,net,web3` | | `geth.miner.replicaCount` | geth miner nodes replica count | `3` | | `geth.miner.account.secret` | geth account secret | `my-secret-account-password` | | `geth.genesis.networkId` | Ethereum network id | `98052` | diff --git a/stable/ethereum/templates/geth-tx.deployment.yaml b/stable/ethereum/templates/geth-tx.deployment.yaml index e862459846..859b1f4837 100644 --- a/stable/ethereum/templates/geth-tx.deployment.yaml +++ b/stable/ethereum/templates/geth-tx.deployment.yaml @@ -29,7 +29,7 @@ spec: command: ["/bin/sh"] args: - "-c" - - "geth --bootnodes=`cat /root/.ethereum/bootnodes` --rpc --rpcaddr 0.0.0.0 --rpcapi=eth,net,web3 --rpccorsdomain='*' --ws --networkid=${NETWORK_ID} --ethstats=${HOSTNAME}:${ETHSTATS_SECRET}@${ETHSTATS_SVC} --verbosity=5" + - "geth --bootnodes=`cat /root/.ethereum/bootnodes` --rpc --rpcaddr 0.0.0.0 --rpcapi={{ .Values.geth.tx.args.rpcapi }} --rpccorsdomain='*' --ws --networkid=${NETWORK_ID} --ethstats=${HOSTNAME}:${ETHSTATS_SECRET}@${ETHSTATS_SVC} --verbosity=5" env: - name: ETHSTATS_SVC value: {{ template "ethereum.fullname" . }}-ethstats.{{ .Release.Namespace }} diff --git a/stable/ethereum/values.yaml b/stable/ethereum/values.yaml index 10c0aa3694..67a4f1d96c 100644 --- a/stable/ethereum/values.yaml +++ b/stable/ethereum/values.yaml @@ -30,6 +30,8 @@ geth: replicaCount: 2 service: type: ClusterIP + args: + rpcapi: 'eth,net,web3' miner: # miner nodes replicaCount: 3