Skip to content

Commit

Permalink
feat: Bitcoin synced v1.0.0 charts
Browse files Browse the repository at this point in the history
  • Loading branch information
darioAnongba authored Mar 18, 2024
2 parents 6bde389 + 2beaf92 commit 0e6b0ca
Show file tree
Hide file tree
Showing 9 changed files with 128 additions and 194 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
if: github.ref == 'refs/heads/main'
run: |
helm upgrade --install bitcoind charts/bitcoind/ -f charts/bitcoind/values.yaml --namespace bitcoin-mainnet --create-namespace
# Add more Helm upgrade/install commands as needed for other charts
helm upgrade kube-prometheus-stack prometheus-community/kube-prometheus-stack --namespace namespace kube-prometheus-stack --values charts/monitoring/values.yaml
- name: Deploy Testnet
if: github.ref == 'refs/heads/development'
run: |
Expand Down
2 changes: 1 addition & 1 deletion charts/bitcoind/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type: application
# 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.0
version: 1.0.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
18 changes: 16 additions & 2 deletions charts/bitcoind/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
selector:
matchLabels:
{{- include "bitcoind.selectorLabels" . | nindent 6 }}
terminationGracePeriodSeconds: {{.Values.terminationGracePeriodSeconds}}
template:
metadata:
annotations:
Expand Down Expand Up @@ -103,6 +104,7 @@ spec:
- getblockchaininfo
failureThreshold: {{.Values.startupProbe.failureThreshold}}
periodSeconds: 10
timeoutSeconds: 3
livenessProbe:
exec:
command:
Expand All @@ -114,6 +116,8 @@ spec:
- getblockchaininfo
initialDelaySeconds: 120
periodSeconds: 30
timeoutSeconds: 3
failureThreshold: {{.Values.livenessProbe.failureThreshold}}
readinessProbe:
exec:
command:
Expand All @@ -123,8 +127,10 @@ spec:
- -{{.Values.global.network}}
{{- end }}
- getblockchaininfo
periodSeconds: 4
successThreshold: 3
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 3
failureThreshold: {{.Values.livenessProbe.failureThreshold}}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if and .Values.descriptor.secretName .Values.descriptor.secretKey }}
Expand Down Expand Up @@ -193,10 +199,18 @@ spec:
httpGet:
path: /
port: metrics
initialDelaySeconds: 120
periodSeconds: 300
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: metrics
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
periodSeconds: 300
volumes:
- name: config
emptyDir: {}
Expand Down
6 changes: 6 additions & 0 deletions charts/bitcoind/testnet-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ bitcoindCustomConfig:
bind: 0.0.0.0
rpcbind: 0.0.0.0
rpcallowip: 0.0.0.0/0

startupProbe:
failureThreshold: 90

livenessProbe:
failureThreshold: 3
22 changes: 13 additions & 9 deletions charts/bitcoind/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ secrets:
create: true

replicaCount: 1
terminationGracePeriodSeconds: 60

image:
repository: lncm/bitcoind
Expand Down Expand Up @@ -65,18 +66,18 @@ ingress:
# hosts:
# - chart-example.local

resources: {}
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# We recommend using the following values due to the resource intensive nature of bitcoind
# limits:
# cpu: 3000m
# memory: 5120Mi
# requests:
# cpu: 100m
# memory: 4096Mi
limits:
cpu: 3000m
memory: 5200Mi
requests:
cpu: 1000m
memory: 4096Mi

persistence:
enabled: true
Expand All @@ -99,7 +100,8 @@ affinity: {}

labels: {}

podLabels: {}
podLabels:
app: bitcoind

bitcoindGenericConfig:
- debug=mempool
Expand All @@ -112,7 +114,6 @@ bitcoindGenericConfig:
- zmqpubrawtx=tcp://0.0.0.0:28333
- zmqpubrawblock=tcp://0.0.0.0:28332
- blockfilterindex=1
- dbcache=8192

# these flags need to be here and not in bitcoindGenericConfig because they have to be present under a separate section inside bitcoind.conf when in testnet/regtest mode
bitcoindCustomConfig:
Expand All @@ -126,3 +127,6 @@ descriptor:

startupProbe:
failureThreshold: 90

livenessProbe:
failureThreshold: 3
7 changes: 2 additions & 5 deletions charts/monitoring/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@ dependencies:
- name: prometheus
repository: https://prometheus-community.github.io/helm-charts
version: 25.17.0
- name: kubernetes-dashboard
repository: https://kubernetes.github.io/dashboard/
version: 7.1.2
digest: sha256:a7bc54cdc759b95792c1f453fb97630f573b39590a8fc29ebfc909908a9ea861
generated: "2024-03-15T01:52:03.270815+01:00"
digest: sha256:08bd3956345350e4dab8c3b3b426fe44b14bac03f5f6e29a70e70b76c3d6167d
generated: "2024-03-15T15:29:29.409577+01:00"
9 changes: 3 additions & 6 deletions charts/monitoring/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,15 @@ type: application
# 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.0
version: 1.0.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.1.0
appVersion: 55.7.0
dependencies:
- name: grafana
repository: https://grafana.github.io/helm-charts
version: 7.3.5
- name: prometheus
repository: https://prometheus-community.github.io/helm-charts
version: 25.17.0
- name: kubernetes-dashboard
version: 7.1.2
repository: "https://kubernetes.github.io/dashboard/"
version: 25.17.0
Binary file not shown.
Loading

0 comments on commit 0e6b0ca

Please sign in to comment.