-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to add deployment script and initial postgres deployment
- Loading branch information
1 parent
56c6e88
commit 4aacf27
Showing
29 changed files
with
1,069 additions
and
0 deletions.
There are no files selected for viewing
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,32 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cdk-validium-aggregator | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cdk-validium-aggregator | ||
spec: | ||
nodeSelector: | ||
'beta.kubernetes.io/os': linux | ||
containers: | ||
- name: cdk-validium-aggregator | ||
image: hermeznetwork/cdk-validium-node:develop | ||
env: | ||
- name: CDK_VALIDIUM_NODE_STATEDB_HOST | ||
value: | ||
- name: CDK_VALIDIUM_NODE_AGGREGATOR_SENDER_ADDRESS | ||
value: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 50081 | ||
name: main | ||
- containerPort: 9093 | ||
name: metrics |
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,25 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cdk-validium-approve | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cdk-validium-approve | ||
spec: | ||
nodeSelector: | ||
'beta.kubernetes.io/os': linux | ||
containers: | ||
- name: cdk-validium-approve | ||
image: hermeznetwork/cdk-validium-node:develop | ||
env: | ||
- name: CDK_VALIDIUM_NODE_STATEDB_HOST | ||
value: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi |
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,25 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cdk-validium-data-availability | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cdk-validium-data-availability | ||
spec: | ||
nodeSelector: | ||
'beta.kubernetes.io/os': linux | ||
containers: | ||
- name: cdk-validium-data-availability | ||
image: hermeznetwork/cdk-data-availability:v0.0.1 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 8444 | ||
name: rpc |
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,29 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cdk-validium-deploy-sepolia | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cdk-validium-deploy-sepolia | ||
spec: | ||
nodeSelector: | ||
'beta.kubernetes.io/os': linux | ||
containers: | ||
- name: cdk-validium-deploy-sepolia | ||
image: snapchain/cdk-validium-contracts | ||
env: | ||
- name: MNEMONIC | ||
value: | ||
- name: INFURA_PROJECT_ID | ||
value: | ||
- name: HARDHAT_NETWORK | ||
value: sepolia | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi |
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,30 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cdk-validium-eth-tx-manager | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cdk-validium-eth-tx-manager | ||
spec: | ||
nodeSelector: | ||
'beta.kubernetes.io/os': linux | ||
containers: | ||
- name: cdk-validium-eth-tx-manager | ||
image: hermeznetwork/cdk-validium-node:develop | ||
env: | ||
- name: CDK_VALIDIUM_NODE_STATEDB_HOST | ||
value: | ||
- name: CDK_VALIDIUM_NODE_POOL_DB_HOST | ||
value: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 9094 | ||
name: metrics |
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,36 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cdk-validium-explorer-json-rpc | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cdk-validium-explorer-json-rpc | ||
spec: | ||
nodeSelector: | ||
'beta.kubernetes.io/os': linux | ||
containers: | ||
- name: cdk-validium-explorer-json-rpc | ||
image: hermeznetwork/cdk-validium-node:develop | ||
env: | ||
- name: CDK_VALIDIUM_NODE_STATEDB_HOST | ||
value: | ||
- name: CDK_VALIDIUM_NODE_POOL_DB_HOST | ||
value: | ||
- name: CDK_VALIDIUM_NODE_RPC_PORT | ||
value: 8124 | ||
- name: CDK_VALIDIUM_NODE_RPC_WEBSOCKETS_PORT | ||
value: 8134 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 8124 | ||
name: rpc | ||
- containerPort: 8134 | ||
name: web-socket |
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,42 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cdk-validium-explorer-l1 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cdk-validium-explorer-l1 | ||
spec: | ||
nodeSelector: | ||
'beta.kubernetes.io/os': linux | ||
containers: | ||
- name: cdk-validium-explorer-l1 | ||
image: hermeznetwork/zkevm-explorer:latest | ||
env: | ||
- name: NETWORK | ||
value: ETH | ||
- name: SUBNETWORK | ||
value: Local Ethereum | ||
- name: COIN | ||
value: ETH | ||
- name: ETHEREUM_JSONRPC_VARIANT | ||
value: geth | ||
- name: ETHEREUM_JSONRPC_HTTP_URL | ||
value: http://cdk-validium-mock-l1-network:8545 | ||
- name: DATABASE_URL | ||
value: postgres://l1_explorer_user:l1_explorer_password@cdk-validium-explorer-l1-db:5432/l1_explorer_db | ||
- name: ECTO_USE_SSL | ||
value: false | ||
- name: MIX_ENV | ||
value: prod | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 4000 | ||
name: explorer-web |
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,46 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cdk-validium-explorer-l2 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cdk-validium-explorer-l2 | ||
spec: | ||
nodeSelector: | ||
'beta.kubernetes.io/os': linux | ||
containers: | ||
- name: cdk-validium-explorer-l2 | ||
image: hermeznetwork/zkevm-explorer:latest | ||
env: | ||
- name: NETWORK | ||
value: POE | ||
- name: SUBNETWORK | ||
value: Polygon Hermez | ||
- name: COIN | ||
value: ETH | ||
- name: ETHEREUM_JSONRPC_VARIANT | ||
value: geth | ||
- name: ETHEREUM_JSONRPC_HTTP_URL | ||
value: http://cdk-validium-explorer-json-rpc:8124 | ||
- name: DATABASE_URL | ||
value: postgres://l2_explorer_user:l2_explorer_password@cdk-validium-explorer-l2-db:5432/l2_explorer_db | ||
- name: ECTO_USE_SSL | ||
value: false | ||
- name: MIX_ENV | ||
value: prod | ||
- name: LOGO | ||
value: /images/blockscout_logo.svg | ||
- name: LOGO_FOOTER | ||
value: /images/blockscout_logo.svg | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 4001 | ||
name: explorer-web |
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,34 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cdk-validium-json-rpc | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cdk-validium-json-rpc | ||
spec: | ||
nodeSelector: | ||
'beta.kubernetes.io/os': linux | ||
containers: | ||
- name: cdk-validium-json-rpc | ||
image: hermeznetwork/cdk-validium-node:develop | ||
env: | ||
- name: CDK_VALIDIUM_NODE_STATEDB_HOST | ||
value: | ||
- name: CDK_VALIDIUM_NODE_POOL_DB_HOST | ||
value: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 8123 | ||
name: rpc | ||
- containerPort: 8133 | ||
name: web-socket | ||
- containerPort: 9091 | ||
name: metrics |
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,25 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cdk-validium-l2gaspricer | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cdk-validium-l2gaspricer | ||
spec: | ||
nodeSelector: | ||
'beta.kubernetes.io/os': linux | ||
containers: | ||
- name: cdk-validium-l2gaspricer | ||
image: hermeznetwork/cdk-validium-node:develop | ||
env: | ||
- name: CDK_VALIDIUM_NODE_POOL_DB_HOST | ||
value: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi |
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,25 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cdk-validium-metrics | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cdk-validium-metrics | ||
spec: | ||
nodeSelector: | ||
'beta.kubernetes.io/os': linux | ||
containers: | ||
- name: cdk-validium-metrics | ||
image: prom/prometheus:v2.39.1 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 9090 | ||
name: metrics |
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,27 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cdk-validium-mock-l1-network | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cdk-validium-mock-l1-network | ||
spec: | ||
nodeSelector: | ||
'beta.kubernetes.io/os': linux | ||
containers: | ||
- name: cdk-validium-mock-l1-network | ||
image: snapchain/geth-cdk-validium-contracts | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 8545 | ||
name: rpc | ||
- containerPort: 8546 | ||
name: web-socket |
Oops, something went wrong.