You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
58 lines
1.3 KiB

|
|
# configmap
|
|
```yaml
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: binance-config-qy-xrp
|
|
namespace: sre
|
|
data:
|
|
config.json: |
|
|
{
|
|
"platform": "binance_spot",
|
|
"symbol": "XRPUSDT",
|
|
"api_key": "your api_ky 1111111111111111111111111111111111111",
|
|
"api_secret": "your api_secret 222222222222222222222222222222",
|
|
"gap_percent": 0.005,
|
|
"quantity": 40,
|
|
"min_price": 0.00001,
|
|
"min_qty": 40,
|
|
"max_orders": 5,
|
|
"proxy_host": "",
|
|
"proxy_port": 0
|
|
}
|
|
```
|
|
|
|
# k8s Deployment api-wechat
|
|
|
|
```yaml
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: binance-trader-xrp
|
|
namespace: sre
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
binance: trader
|
|
template:
|
|
metadata:
|
|
labels:
|
|
binance: trader
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: wzaqqqaliyunsecret
|
|
containers:
|
|
- name: binance-trader
|
|
image: mmmmmmmmmmmmmmmm/binance_grid_trader:6
|
|
imagePullPolicy: IfNotPresent
|
|
volumeMounts:
|
|
- name: binance-config
|
|
mountPath: /app/conf/
|
|
volumes:
|
|
- name: binance-config
|
|
configMap:
|
|
name: binance-config-qy-xrp
|
|
```
|