update readme for helm chart usage

This commit is contained in:
c9s 2020-12-17 15:31:00 +08:00
parent f2f2887dad
commit 16c873ce7d
3 changed files with 33 additions and 6 deletions

View File

@ -233,10 +233,30 @@ streambook.BindStream(stream)
## Helm Chart ## Helm Chart
Prepare your secret:
``` ```
kubectl create secret generic bbgo --from-env-file .env.local kubectl create secret generic bbgo --from-env-file .env.local
``` ```
Configure your config file:
```
vim config/bbgo.yaml
```
Install chart:
```
helm install bbgo ./charts/bbgo
```
Delete chart:
```
helm delete bbgo
```
## Support ## Support
### By contributing pull requests ### By contributing pull requests

View File

@ -15,7 +15,7 @@ nameOverride: ""
fullnameOverride: "" fullnameOverride: ""
configmap: configmap:
file: "config/bollgrid.yaml" file: "config/bbgo.yaml"
dotenv: dotenv:
secret: "bbgo" secret: "bbgo"

View File

@ -1,8 +1,4 @@
--- ---
imports:
- github.com/c9s/bbgo/pkg/strategy/buyandhold
- github.com/c9s/bbgo/pkg/strategy/xpuremaker
notifications: notifications:
slack: slack:
defaultChannel: "dev-bbgo" defaultChannel: "dev-bbgo"
@ -57,10 +53,21 @@ backtest:
USDT: 10000.0 USDT: 10000.0
exchangeStrategies: exchangeStrategies:
- on: max - on: max
buyandhold: buyandhold:
symbol: "BTCUSDT" symbol: "BTCUSDT"
interval: "1h" interval: "5m"
baseQuantity: 0.01 baseQuantity: 0.01
# minDropPercentage: 0.01 # minDropPercentage: 0.01
minDropChange: 100.0 minDropChange: 100.0
- on: max
grid:
symbol: BTCUSDT
quantity: 0.001
gridNumber: 100
profitSpread: 50.0
upperPrice: 30000.0
lowerPrice: 10000.0