-
Notifications
You must be signed in to change notification settings - Fork 14
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
1 parent
9a13cd1
commit fb1b309
Showing
4 changed files
with
270 additions
and
0 deletions.
There are no files selected for viewing
92 changes: 92 additions & 0 deletions
92
devenv/LOCAL/[2]-K8S/1-YAMLs/deployments/mempool-backend-deployment.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,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" |
66 changes: 66 additions & 0 deletions
66
devenv/LOCAL/[2]-K8S/1-YAMLs/deployments/mempool-frontend-deployment.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,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" |
43 changes: 43 additions & 0 deletions
43
devenv/LOCAL/[2]-K8S/1-YAMLs/deployments/stacks-explorer-deployment.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,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" |
69 changes: 69 additions & 0 deletions
69
devenv/LOCAL/[2]-K8S/1-YAMLs/deployments/stacks-node-deployment.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,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" |