Skip to content

Commit

Permalink
Adding more deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
SundarGowtham committed May 7, 2024
1 parent 9a13cd1 commit fb1b309
Show file tree
Hide file tree
Showing 4 changed files with 270 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mempool-backend-deployment
namespace: mempool-backend
labels:
app: mempool-backend

spec:
replicas: 1
revisionHistoryLimit: 1
selector:
matchLabels:
app: mempool-backend

template:
metadata:
labels:
app: mempool-backend

spec:
containers:
- name: mempool-backend-container
image: mempool/backend:latest
imagePullPolicy: IfNotPresent

# livenessProbe:
# failureThreshold: 3
# httpGet:
# path: /
# port: 8999
# scheme: HTTP
# periodSeconds: 10
# successThreshold: 1
# timeoutSeconds: 10
# initialDelaySeconds: 30

# readinessProbe:
# failureThreshold: 3
# httpGet:
# path: /
# port: 8999
# scheme: HTTP
# periodSeconds: 10
# successThreshold: 1
# timeoutSeconds: 10
# initialDelaySeconds: 30

resources:
requests:
memory: 128Mi
cpu: 50m
limits:
memory: 256Mi
cpu: 100m

ports:
- containerPort: 8999
protocol: TCP

env:
# Connect to electrs host
- name: MEMPOOL_BACKEND
value: "electrum"
- name: ELECTRUM_HOST
value: "electrs-service.electrs"
- name: ELECTRUM_PORT
value: "60401"
- name: ELECTRUM_TLS_ENABLED
value: "false"
# Connect to bitcoin rpc
- name: CORE_RPC_HOST
value: "bitcoin-regtest-service.bitcoin"
- name: CORE_RPC_PORT
value: "18443"
- name: CORE_RPC_USERNAME
value: "devnet"
- name: CORE_RPC_PASSWORD
value: "devnet"
- name: DATABASE_ENABLED
value: "true"
- name: DATABASE_HOST
value: "mariadb-service.mariadb"
- name: DATABASE_DATABASE
value: "mempool"
- name: DATABASE_USERNAME
value: "mempool"
- name: DATABASE_PASSWORD
value: "mempool"
- name: STATISTICS_ENABLED
value: "true"
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mempool-frontend-deployment
namespace: mempool-frontend
labels:
app: mempool-frontend

spec:
replicas: 1
revisionHistoryLimit: 1
selector:
matchLabels:
app: mempool-frontend

template:
metadata:
labels:
app: mempool-frontend

spec:
containers:
- name: mempool-frontend-container
image: mempool/frontend:latest
imagePullPolicy: IfNotPresent

# livenessProbe:
# failureThreshold: 3
# httpGet:
# path: /
# port: 8083
# scheme: HTTP
# periodSeconds: 10
# successThreshold: 1
# timeoutSeconds: 10
# initialDelaySeconds: 30

# readinessProbe:
# failureThreshold: 3
# httpGet:
# path: /
# port: 8083
# scheme: HTTP
# periodSeconds: 10
# successThreshold: 1
# timeoutSeconds: 10
# initialDelaySeconds: 30

resources:
requests:
memory: 128Mi
cpu: 50m
limits:
memory: 256Mi
cpu: 100m

ports:
- containerPort: 8083
protocol: TCP

env:
- name: FRONTEND_HTTP_PORT
value: "8083"
- name: BACKEND_MAINNET_HTTP_HOST
value: "mempool-backend-service.mempool"
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: stacks-explorer-deployment
namespace: stacks
labels:
app: stacks-explorer

spec:
replicas: 1
revisionHistoryLimit: 1
selector:
matchLabels:
app: stacks-explorer

template:
metadata:
labels:
app: stacks-explorer

spec:
containers:
- name: stacks-explorer-container
image: local/stacks-explorer:v4
imagePullPolicy: Never

resources:
requests:
memory: 128Mi
cpu: 50m
limits:
memory: 256Mi
cpu: 100m

ports:
- containerPort: 3020
protocol: TCP
- containerPort: 3000
protocol: TCP

env:
- name: NEXT_PUBLIC_MAINNET_API_SERVER
value: "http://stacks-api-service.stacks:3999"
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: stacks-node-deployment
namespace: stacks
labels:
app: stacks-node

spec:
replicas: 1
revisionHistoryLimit: 1
selector:
matchLabels:
app: stacks-node

template:
metadata:
labels:
app: stacks-node

spec:
containers:
- name: stacks-node-container
image: local/stacks:v6
imagePullPolicy: Never

resources:
requests:
memory: 128Mi
cpu: 50m
limits:
memory: 256Mi
cpu: 100m

ports:
- containerPort: 20444
protocol: TCP
- containerPort: 20443
protocol: TCP
- containerPort: 20444
protocol: UDP
- containerPort: 20443
protocol: UDP

env:
- name: STACKS_LOG_DEBUG
value: "0"
- name: STACKS_LOG_JSON
value: "0"
- name: LOCAL_PEER_SEED
value: "3fd68a8fcab004754d6fee4756dd9c84ad64ee19a11aa9930893540e1357696f2f73957cd6e92797d7a66d1d3ae4a4ea752a8924fe028f1fc2c06b9d6d0ee0ad"
- name: STACKS_WORKING_DIR
value: "/var/stacks"
- name: MY_HTTP_AUTH_TOKEN
value: "helloworld"
- name: SIGNER_ENDPOINT
value: "nakamoto-signer-service.stacks:30000"
- name: MINER_KEY
value: "19ec1c3e31d139c989a23a27eac60d1abfad5277d3ae9604242514c738258efa01"
- name: BTC_NODE_RPC_HOST
value: "http://bitcoin-regtest-service.bitcoin"
- name: BTC_NODE_RPC_USER
value: "devnet"
- name: BTC_NODE_RPC_PASSWORD
value: "devnet"
# - name: BTC_RPC_PORT
# value: "18443"
# - name: BTC_P2P_PORT
# value: "18444"

0 comments on commit fb1b309

Please sign in to comment.