Skip to content

Commit

Permalink
add separate pods for bitcoind/chain-coordinator
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Jun 22, 2023
1 parent 8a9e0a0 commit 29c7f0f
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
33 changes: 33 additions & 0 deletions templates/bitcoind-pod.template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: v1
kind: Pod
metadata:
labels:
name: bitcoind
service: bitcoind-chain-coordinator
name: bitcoind
namespace: "{namespace}"
spec:
containers:
- command:
- /usr/local/bin/bitcoind
- -conf=/etc/bitcoin/bitcoin.conf
- -nodebuglogfile
- -pid=/run/bitcoind.pid
image: quay.io/hirosystems/bitcoind:devnet-v3
imagePullPolicy: IfNotPresent
name: bitcoind-container
ports:
- containerPort: 18444
name: p2p
protocol: TCP
- containerPort: 18443
name: rpc
protocol: TCP
volumeMounts:
- mountPath: /etc/bitcoin
name: bitcoind-conf-volume
readOnly: true
volumes:
- configMap:
name: bitcoind-conf
name: bitcoind-conf-volume
54 changes: 54 additions & 0 deletions templates/chain-coordinator-pod.template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
apiVersion: v1
kind: Pod
metadata:
labels:
name: chain-coordinator
service: bitcoind-chain-coordinator
name: chain-coordinator
namespace: "{namespace}"
spec:
containers:
- command:
- ./stacks-network
- --namespace=$(NAMESPACE)
- --manifest-path=/etc/stacks-network/project/Clarinet.toml
- --deployment-plan-path=/etc/stacks-network/project/deployments/default.devnet-plan.yaml
- --project-root-path=/etc/stacks-network/project/
env:
- name: NAMESPACE
valueFrom:
configMapKeyRef:
name: namespace-conf
key: NAMESPACE
image: stacks-network-orchestrator
imagePullPolicy: Never
name: chain-coordinator-container
ports:
- containerPort: 20445
name: coordinator-in
protocol: TCP
- containerPort: 20446
name: coordinator-con
protocol: TCP
volumeMounts:
- mountPath: /etc/stacks-network/project
name: project-manifest-conf-volume
- mountPath: /etc/stacks-network/project/settings
name: devnet-conf-volume
- mountPath: /etc/stacks-network/project/deployments
name: deployment-plan-conf-volume
- mountPath: /etc/stacks-network/project/contracts
name: project-dir-conf-volume
volumes:
- configMap:
name: project-manifest-conf
name: project-manifest-conf-volume
- configMap:
name: devnet-conf
name: devnet-conf-volume
- configMap:
name: deployment-plan-conf
name: deployment-plan-conf-volume
- configMap:
name: project-dir-conf
name: project-dir-conf-volume

0 comments on commit 29c7f0f

Please sign in to comment.