-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
286 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
charts/shkeeper/templates/configmaps/xrp-fullnode-rippled.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{{- if .Values.xrp_fullnode.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: xrp-fullnode-config | ||
namespace: shkeeper | ||
data: | ||
rippled.cfg: | | ||
[server] | ||
port_rpc_admin_local | ||
port_http | ||
[port_rpc_admin_local] | ||
port = 5005 | ||
ip = 127.0.0.1 | ||
admin = 127.0.0.1 | ||
protocol = http | ||
[port_http] | ||
port = 51234 | ||
ip = 0.0.0.0 | ||
protocol = http | ||
[node_size] | ||
tiny | ||
[node_db] | ||
type=NuDB | ||
path=/var/lib/rippled/db/nudb | ||
advisory_delete=0 | ||
# How many ledgers do we want to keep (history)? | ||
# Integer value that defines the number of ledgers | ||
# between online deletion events | ||
online_delete=256000 #about 10 days | ||
[ledger_history] | ||
# How many ledgers do we want to keep (history)? | ||
# Integer value (ledger count) | ||
# or (if you have lots of TB SSD storage): 'full' | ||
256000 #about 10 days | ||
[database_path] | ||
/var/lib/rippled/db | ||
[debug_logfile] | ||
/var/log/rippled/debug.log | ||
[sntp_servers] | ||
time.windows.com | ||
time.apple.com | ||
time.nist.gov | ||
pool.ntp.org | ||
[ips] | ||
r.ripple.com 51235 | ||
[validators_file] | ||
validators.txt | ||
[rpc_startup] | ||
{ "command": "log_level", "severity": "info" } | ||
# severity (order: lots of information .. only errors) | ||
# debug | ||
# info | ||
# warn | ||
# error | ||
# fatal | ||
[ssl_verify] | ||
1 | ||
validators.txt: | | ||
[validator_list_sites] | ||
https://vl.ripple.com | ||
[validator_list_keys] | ||
ED2677ABFFD1B33AC6FBC3062B71F1E8397C1505E1C42C64D11AD1B28FF73F4734 | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{- if .Values.bnb_fullnode.enabled }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: xrp | ||
namespace: shkeeper | ||
labels: | ||
app: xrp | ||
spec: | ||
strategy: | ||
type: Recreate | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: xrp | ||
template: | ||
metadata: | ||
labels: | ||
app: xrp | ||
spec: | ||
terminationGracePeriodSeconds: 300 | ||
tolerations: {{- toYaml .Values.xrp_fullnode.tolerations | nindent 8 }} | ||
nodeSelector: {{- toYaml .Values.xrp_fullnode.nodeSelector | nindent 8 }} | ||
containers: | ||
|
||
# executor | ||
- name: xrp | ||
image: xrpllabsofficial/xrpld:1.12.0 | ||
volumeMounts: | ||
- name: xrp-fullnode-config | ||
mountPath: /config/rippled.cfg | ||
subPath: rippled.cfg | ||
- name: xrp-fullnode-config | ||
mountPath: /config/validators.txt | ||
subPath: validators.txt | ||
|
||
|
||
volumes: | ||
- name: xrp-fullnode-config | ||
configMap: | ||
name: xrp-fullnode-config | ||
{{- end }} |
105 changes: 105 additions & 0 deletions
105
charts/shkeeper/templates/deployments/xrp-shkeeper.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{{- if .Values.xrp.enabled}} | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: xrp-shkeeper | ||
namespace: shkeeper | ||
labels: | ||
app: xrp-shkeeper | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: xrp-shkeeper | ||
template: | ||
metadata: | ||
labels: | ||
app: xrp-shkeeper | ||
spec: | ||
{{- with .Values.dev.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
|
||
containers: | ||
|
||
- name: app | ||
image: {{ .Values.xrp_shkeeper.image }} | ||
command: | ||
- gunicorn | ||
- --access-logfile=- | ||
- --workers=1 | ||
- --threads=16 | ||
- --timeout=600 | ||
- --bind=0.0.0.0:6000 | ||
- run:server | ||
ports: | ||
- containerPort: 6000 | ||
name: http | ||
env: | ||
- name: XRP_USERNAME | ||
valueFrom: | ||
secretKeyRef: | ||
name: xrp-rpc | ||
key: username | ||
- name: XRP_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: xrp-rpc | ||
key: password | ||
- name: SHKEEPER_BACKEND_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: shkeeper-btc-key | ||
key: password | ||
- name: XRP_NETWORK | ||
{{- if .Values.XRP_fullnode.mainnet }} | ||
value: &XRP_NETWORK_VALUE "main" | ||
{{- else }} | ||
value: &XRP_NETWORK_VALUE "testnet" | ||
{{- end }} | ||
- name: FULLNODE_URL | ||
value: {{ .Values.xrp_fullnode.url }} | ||
{{- range $name, $value := .Values.xrp_shkeeper.extraEnv }} | ||
- name: {{ $name | quote }} | ||
value: {{ $value | quote }} | ||
{{- end }} | ||
|
||
- name: tasks | ||
image: {{ .Values.xrp_shkeeper.image }} | ||
command: ["celery", "-A", "celery_worker.celery", "worker", "--loglevel=info", "-B"] | ||
env: | ||
- name: XRP_USERNAME | ||
valueFrom: | ||
secretKeyRef: | ||
name: xrp-rpc | ||
key: username | ||
- name: XRP_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: xrp-rpc | ||
key: password | ||
- name: SHKEEPER_BACKEND_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: shkeeper-btc-key | ||
key: password | ||
- name: XRP_NETWORK | ||
{{- if .Values.xrp_fullnode.mainnet }} | ||
value: *XRP_NETWORK_VALUE | ||
{{- else }} | ||
value: *XRP_NETWORK_VALUE | ||
{{- end }} | ||
- name: FULLNODE_URL | ||
value: {{ .Values.xrp_fullnode.url }} | ||
- name: C_FORCE_ROOT | ||
value: "1" | ||
{{- range $name, $value := .Values.xrp_shkeeper.extraEnv }} | ||
- name: {{ $name | quote }} | ||
value: {{ $value | quote }} | ||
{{- end }} | ||
|
||
- name: redis | ||
image: redis | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{ if .Values.xrp_fullnode.enabled }} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: xrp | ||
namespace: shkeeper | ||
spec: | ||
selector: | ||
app: xrp | ||
ports: | ||
- name: http-tcp | ||
port: 51234 | ||
protocol: TCP | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- if .Values.xrp.enabled}} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: xrp-shkeeper | ||
namespace: shkeeper | ||
spec: | ||
selector: | ||
app: xrp-shkeeper | ||
ports: | ||
- name: app-tcp | ||
port: 6000 | ||
protocol: TCP | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters