Skip to content

Commit

Permalink
Update to add deployment script and initial postgres deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
caleteeter committed Jan 2, 2024
1 parent 56c6e88 commit 4aacf27
Show file tree
Hide file tree
Showing 29 changed files with 1,069 additions and 0 deletions.
32 changes: 32 additions & 0 deletions aks/cdk-validium-aggregator.yaml
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
25 changes: 25 additions & 0 deletions aks/cdk-validium-approve.yaml
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
25 changes: 25 additions & 0 deletions aks/cdk-validium-data-availability.yaml
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
29 changes: 29 additions & 0 deletions aks/cdk-validium-deploy-sepolia.yaml
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
30 changes: 30 additions & 0 deletions aks/cdk-validium-eth-tx-manager.yaml
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
36 changes: 36 additions & 0 deletions aks/cdk-validium-explorer-json-rpc.yaml
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
42 changes: 42 additions & 0 deletions aks/cdk-validium-explorer-l1.yaml
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
46 changes: 46 additions & 0 deletions aks/cdk-validium-explorer-l2.yaml
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
34 changes: 34 additions & 0 deletions aks/cdk-validium-json-rpc.yaml
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
25 changes: 25 additions & 0 deletions aks/cdk-validium-l2gaspricer.yaml
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
25 changes: 25 additions & 0 deletions aks/cdk-validium-metrics.yaml
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
27 changes: 27 additions & 0 deletions aks/cdk-validium-mock-l1-network.yaml
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
Loading

0 comments on commit 4aacf27

Please sign in to comment.