Commit 1d92dfd0 authored by Ben Wilson's avatar Ben Wilson Committed by GitHub

Update replicas for new healthcheck verison (#2638)

* Update replicas for new healthcheck verison

* Added mainnet replicas
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 711c4a06
...@@ -6,7 +6,7 @@ metadata: ...@@ -6,7 +6,7 @@ metadata:
spec: spec:
selector: selector:
app: l2geth-replica app: l2geth-replica
type: ClusterIP type: NodePort
ports: ports:
- name: rpc - name: rpc
port: 8545 port: 8545
......
...@@ -9,6 +9,9 @@ spec: ...@@ -9,6 +9,9 @@ spec:
containers: containers:
- name: replica-healthcheck - name: replica-healthcheck
image: ethereumoptimism/replica-healthcheck-v1 image: ethereumoptimism/replica-healthcheck-v1
envFrom:
- configMapRef:
name: replica-healthcheck-v1
ports: ports:
- containerPort: 7300 - containerPort: 7300
name: metrics name: metrics
......
...@@ -14,6 +14,7 @@ resources: ...@@ -14,6 +14,7 @@ resources:
- ../../bases/l2geth-replica - ../../bases/l2geth-replica
- ../../bases/servicemonitors - ../../bases/servicemonitors
- ../../bases/replica-healthcheck - ../../bases/replica-healthcheck
- ../../bases/replica-healthcheck-v1
- ./volumes.yaml - ./volumes.yaml
images: images:
...@@ -26,6 +27,9 @@ images: ...@@ -26,6 +27,9 @@ images:
- name: ethereumoptimism/replica-healthcheck - name: ethereumoptimism/replica-healthcheck
newName: ethereumoptimism/replica-healthcheck newName: ethereumoptimism/replica-healthcheck
newTag: 0.3.6 newTag: 0.3.6
- name: ethereumoptimism/replica-healthcheck-v1
newName: ethereumoptimism/replica-healthcheck
newTag: 1.0.6
patchesStrategicMerge: patchesStrategicMerge:
- ./patches/dtl.yaml - ./patches/dtl.yaml
...@@ -44,4 +48,9 @@ patches: ...@@ -44,4 +48,9 @@ patches:
group: apps group: apps
version: v1 version: v1
kind: StatefulSet kind: StatefulSet
name: data-transport-layer name: data-transport-layer
\ No newline at end of file
configMapGenerator:
- name: replica-healthcheck-v1
envs:
- ./replica-healthcheck-v1.env
HEALTHCHECK__REFERENCE_RPC_PROVIDER=http://sequencer.default:8545
HEALTHCHECK__TARGET_RPC_PROVIDER=http://l2geth-replica:8545
\ No newline at end of file
...@@ -15,18 +15,22 @@ resources: ...@@ -15,18 +15,22 @@ resources:
- ../../bases/l2geth-replica - ../../bases/l2geth-replica
- ../../bases/servicemonitors - ../../bases/servicemonitors
- ../../bases/replica-healthcheck - ../../bases/replica-healthcheck
- ../../bases/replica-healthcheck-v1
- ./volumes.yaml - ./volumes.yaml
images: images:
- name: ethereumoptimism/data-transport-layer - name: ethereumoptimism/data-transport-layer
newName: ethereumoptimism/data-transport-layer newName: ethereumoptimism/data-transport-layer
newTag: 0.5.21 newTag: prerelease-dtl-race
- name: ethereumoptimism/l2geth - name: ethereumoptimism/l2geth
newName: ethereumoptimism/l2geth newName: ethereumoptimism/l2geth
newTag: 0.5.14 newTag: prerelease-l2g-l1-sync-recovery
- name: ethereumoptimism/replica-healthcheck - name: ethereumoptimism/replica-healthcheck
newName: ethereumoptimism/replica-healthcheck newName: ethereumoptimism/replica-healthcheck
newTag: 0.3.6 newTag: 0.3.6
- name: ethereumoptimism/replica-healthcheck-v1
newName: ethereumoptimism/replica-healthcheck
newTag: 1.0.6
patchesStrategicMerge: patchesStrategicMerge:
- ./patches/dtl.yaml - ./patches/dtl.yaml
...@@ -45,4 +49,9 @@ patches: ...@@ -45,4 +49,9 @@ patches:
group: apps group: apps
version: v1 version: v1
kind: StatefulSet kind: StatefulSet
name: data-transport-layer name: data-transport-layer
\ No newline at end of file
configMapGenerator:
- name: replica-healthcheck-v1
envs:
- ./replica-healthcheck-v1.env
HEALTHCHECK__REFERENCE_RPC_PROVIDER=http://sequencer.default:8545
HEALTHCHECK__TARGET_RPC_PROVIDER=http://l2geth-replica:8545
\ No newline at end of file
...@@ -13,7 +13,7 @@ resources: ...@@ -13,7 +13,7 @@ resources:
- ../../bases/data-transport-layer - ../../bases/data-transport-layer
- ../../bases/l2geth-replica - ../../bases/l2geth-replica
- ../../bases/servicemonitors - ../../bases/servicemonitors
- ../../bases/replica-healthcheck - ../../bases/replica-healthcheck-v1
- ./ingress.yaml - ./ingress.yaml
- ./volumes.yaml - ./volumes.yaml
...@@ -24,14 +24,13 @@ images: ...@@ -24,14 +24,13 @@ images:
- name: ethereumoptimism/l2geth - name: ethereumoptimism/l2geth
newName: ethereumoptimism/l2geth newName: ethereumoptimism/l2geth
newTag: 0.5.14 newTag: 0.5.14
- name: ethereumoptimism/replica-healthcheck - name: ethereumoptimism/replica-healthcheck-v1
newName: ethereumoptimism/replica-healthcheck newName: ethereumoptimism/replica-healthcheck
newTag: 0.3.6 newTag: 1.0.6
patchesStrategicMerge: patchesStrategicMerge:
- ./patches/dtl.yaml - ./patches/dtl.yaml
- ./patches/l2geth.yaml - ./patches/l2geth.yaml
- ./patches/replica-healthcheck.yaml
patches: patches:
- path: ./patches/l2geth-volume.yaml - path: ./patches/l2geth-volume.yaml
...@@ -45,4 +44,9 @@ patches: ...@@ -45,4 +44,9 @@ patches:
group: apps group: apps
version: v1 version: v1
kind: StatefulSet kind: StatefulSet
name: data-transport-layer name: data-transport-layer
\ No newline at end of file
configMapGenerator:
- name: replica-healthcheck-v1
envs:
- ./replica-healthcheck-v1.env
HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://kovan.optimism.io
HEALTHCHECK__TARGET_RPC_PROVIDER=http://l2geth-replica:8545
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kovan-replica-0-5-17
commonLabels:
network: kovan
provider: internal
bases:
- ../../../envs/kovan-gen5-berlin
- ../../../scripts
resources:
- ../../bases/data-transport-layer
- ../../bases/l2geth-replica
- ../../bases/servicemonitors
- ../../bases/replica-healthcheck-v1
- ./volumes.yaml
images:
- name: ethereumoptimism/data-transport-layer
newName: ethereumoptimism/data-transport-layer
newTag: 0.5.23
- name: ethereumoptimism/l2geth
newName: ethereumoptimism/l2geth
newTag: 0.5.17
- name: ethereumoptimism/replica-healthcheck-v1
newName: ethereumoptimism/replica-healthcheck
newTag: 1.0.6
patchesStrategicMerge:
- ./patches/dtl.yaml
- ./patches/l2geth.yaml
patches:
- path: ./patches/l2geth-volume.yaml
target:
group: apps
version: v1
kind: StatefulSet
name: l2geth-replica
- path: ./patches/dtl-volume.yaml
target:
group: apps
version: v1
kind: StatefulSet
name: data-transport-layer
configMapGenerator:
- name: replica-healthcheck-v1
envs:
- ./replica-healthcheck-v1.env
---
- op: replace
path: /spec/template/spec/volumes/0
value:
name: data-transport-layer
persistentVolumeClaim:
claimName: data-transport-layer-data
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: data-transport-layer
spec:
template:
spec:
initContainers:
- name: wait-for-l1
env:
- name: L1_NODE_WEB3_URL
valueFrom:
secretKeyRef:
name: replica-secrets
key: l1-rpc-endpoint
containers:
- name: data-transport-layer
resources:
limits:
cpu: "2"
memory: 4Gi
requests:
cpu: "1"
memory: 1Gi
env:
- name: DATA_TRANSPORT_LAYER__L1_RPC_ENDPOINT
valueFrom:
secretKeyRef:
name: replica-secrets
key: l1-rpc-endpoint
- name: DATA_TRANSPORT_LAYER__L2_RPC_ENDPOINT
valueFrom:
secretKeyRef:
name: replica-secrets
key: l2-rpc-endpoint
- name: L1_NODE_WEB3_URL
valueFrom:
secretKeyRef:
name: replica-secrets
key: l1-rpc-endpoint
\ No newline at end of file
- op: replace
path: /spec/template/spec/volumes/0
value:
name: l2geth-replica-data
persistentVolumeClaim:
claimName: l2geth-replica-data
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: l2geth-replica
spec:
template:
spec:
containers:
- name: l2geth-replica
env:
- name: IPC_DISABLE
value: "false"
resources:
limits:
cpu: "4"
memory: 12Gi
requests:
cpu: "2"
memory: 8Gi
HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://kovan.optimism.io
HEALTHCHECK__TARGET_RPC_PROVIDER=http://l2geth-replica:8545
\ No newline at end of file
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: l2geth-replica-data
spec:
storageClassName: premium-rwo
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 200Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: data-transport-layer-data
spec:
storageClassName: premium-rwo
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
...@@ -13,7 +13,6 @@ resources: ...@@ -13,7 +13,6 @@ resources:
- ../../bases/data-transport-layer - ../../bases/data-transport-layer
- ../../bases/l2geth-replica - ../../bases/l2geth-replica
- ../../bases/servicemonitors - ../../bases/servicemonitors
- ../../bases/replica-healthcheck
- ../../bases/replica-healthcheck-v1 - ../../bases/replica-healthcheck-v1
- ./volumes.yaml - ./volumes.yaml
- ./ingress.yaml - ./ingress.yaml
...@@ -30,12 +29,11 @@ images: ...@@ -30,12 +29,11 @@ images:
newTag: 0.3.3 newTag: 0.3.3
- name: ethereumoptimism/replica-healthcheck-v1 - name: ethereumoptimism/replica-healthcheck-v1
newName: ethereumoptimism/replica-healthcheck newName: ethereumoptimism/replica-healthcheck
newTag: 1.0.4 newTag: 1.0.6
patchesStrategicMerge: patchesStrategicMerge:
- ./patches/dtl.yaml - ./patches/dtl.yaml
- ./patches/l2geth.yaml - ./patches/l2geth.yaml
- ./patches/replica-healthcheck.yaml
patches: patches:
- path: ./patches/l2geth-volume.yaml - path: ./patches/l2geth-volume.yaml
......
...@@ -13,7 +13,6 @@ resources: ...@@ -13,7 +13,6 @@ resources:
- ../../bases/data-transport-layer - ../../bases/data-transport-layer
- ../../bases/l2geth-replica - ../../bases/l2geth-replica
- ../../bases/servicemonitors - ../../bases/servicemonitors
- ../../bases/replica-healthcheck
- ../../bases/replica-healthcheck-v1 - ../../bases/replica-healthcheck-v1
- ./volumes.yaml - ./volumes.yaml
...@@ -24,17 +23,13 @@ images: ...@@ -24,17 +23,13 @@ images:
- name: ethereumoptimism/l2geth - name: ethereumoptimism/l2geth
newName: ethereumoptimism/l2geth newName: ethereumoptimism/l2geth
newTag: 0.5.17 newTag: 0.5.17
- name: ethereumoptimism/replica-healthcheck
newName: ethereumoptimism/replica-healthcheck
newTag: 0.3.3
- name: ethereumoptimism/replica-healthcheck-v1 - name: ethereumoptimism/replica-healthcheck-v1
newName: ethereumoptimism/replica-healthcheck newName: ethereumoptimism/replica-healthcheck
newTag: 1.0.4 newTag: 1.0.6
patchesStrategicMerge: patchesStrategicMerge:
- ./patches/dtl.yaml - ./patches/dtl.yaml
- ./patches/l2geth.yaml - ./patches/l2geth.yaml
- ./patches/replica-healthcheck.yaml
patches: patches:
- path: ./patches/l2geth-volume.yaml - path: ./patches/l2geth-volume.yaml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment