-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[nbxplorer] New #7
base: master
Are you sure you want to change the base?
Conversation
f6de561
to
79588aa
Compare
nbxplorer/templates/deployment.yaml
Outdated
# - name: http | ||
# containerPort: 80 | ||
# protocol: TCP | ||
# livenessProbe: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implement liveness/readiness
nbxplorer/NBXplorer.options
Outdated
@@ -0,0 +1,259 @@ | |||
</configuration>root@nbxplorer-78b8df9bfc-xnmq7:/app# ./NBXplorer --help | |||
NBXplorer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this .options
file?
nbxplorer/Chart.yaml
Outdated
@@ -0,0 +1,28 @@ | |||
apiVersion: v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do some cleanup to this Chart.yaml, mostly just remove comments.
nbxplorer/Chart.yaml
Outdated
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.1.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably reset to 1.0.0
before merging
nbxplorer/templates/deployment.yaml
Outdated
volumeMounts: | ||
- mountPath: /data | ||
name: nbxplorer | ||
# ports: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's up with this commented out port def?
nbxplorer/templates/deployment.yaml
Outdated
- "--rmqvirtual=/" | ||
- "--rmqtranex=NewTransaction" | ||
- "--rmqblockex=NetBlock" | ||
- "--postgres=User\ ID={{ .Values.postgresql.auth.username }};Password={{ .Values.postgresql.auth.password }};Host=btcpayserver-postgresql;Port=5432;Database={{ .Values.postgresql.auth.database }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
postgres config should definitely be pulled out of here so that a user can use a different db. Should probably also put the postgres install behind a flag. Example might be that user wants to use a managed service like Aurora or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this actually uses the postgres that is stood up with btcpayserver. Might want to flex this dependency a bit.
nbxplorer/templates/pvc.yaml
Outdated
@@ -0,0 +1,17 @@ | |||
{{- if .Values.persistence.enabled }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need persistence like this? Isn't state stored in pg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mounts to mountPath: /data
. What is in here that is stateful?
containers: | ||
- name: wget | ||
image: busybox | ||
command: ['wget'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make this test better. Is there some kind of readiness flag or acceptance criteria that we can check for?
nbxplorer/templates/deployment.yaml
Outdated
- "--btcrpcauth={{ .Values.config.rpcauth.username }}:{{ .Values.config.rpcauth.password }}" | ||
- "--rmquser={{ .Values.rabbitmq.auth.username }}" | ||
- "--rmqpass={{ .Values.rabbitmq.auth.password }}" | ||
- "--rmqhost=nbxplorer-rabbitmq" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this configurable so that an external rmq server could be used here. Maybe put the rabbitmq install behind a flag.
nbxplorer/templates/deployment.yaml
Outdated
args: | ||
- "--datadir=/data" | ||
- "--bind=0.0.0.0:32838" | ||
- "--network=mainnet" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be configurable.
nbxplorer/templates/deployment.yaml
Outdated
- "--bind=0.0.0.0:32838" | ||
- "--network=mainnet" | ||
- "--chains=btc" | ||
- "--noauth" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is noauth
? Sounds dangerous.
nbxplorer/templates/deployment.yaml
Outdated
- "--chains=btc" | ||
- "--noauth" | ||
- "--btcrpcurl=http://bitcoind.bitcoin.svc.cluster.local:8332/" | ||
- "--btcnodeendpoint=bitcoind.bitcoin.svc.cluster.local:8333" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btcnodeendpoint
and btcrpcurl
should be configurable. Also why is one using 8333
and the other is using 8332
? Secure vs unsecure...
5097600
to
55bbc82
Compare
55bbc82
to
51ff5ed
Compare
Adds nbxplorer. A dependency for btcpayserver.
Based on: https://github.com/dgarage/NBXplorer