Skip to content

Commit

Permalink
Merge pull request #1828 from ost006/main
Browse files Browse the repository at this point in the history
Mothership: add proxyd to testnet
  • Loading branch information
sky1045 authored Jul 2, 2024
2 parents aef7438 + 1ca642d commit e16eabb
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 0 deletions.
88 changes: 88 additions & 0 deletions charts/mothership/templates/proxyd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{{- if .Values.proxyd.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: proxyd
namespace: {{ .Release.Namespace }}
spec:
selector:
matchLabels:
name: proxyd
replicas: 1
template:
metadata:
labels:
name: proxyd
spec:
volumes:
- name: proxyd-volume
emptyDir: {}
initContainers:
- name: fetch-config
image: curlimages/curl
command: ["sh", "-c"]
args:
- |
curl -LO $GENESIS_SOURCE/proxyd.toml ;
workingDir: /etc/proxyd
env:
- name: GENESIS_SOURCE
value: "{{ $.Values.genesis.source }}"
volumeMounts:
- mountPath: /etc/proxyd
name: proxyd-volume
securityContext:
runAsUser: 0
runAsNonRoot: false
- name: wait-for-op-geth
image: curlimages/curl
command: ['sh', '-c']
args:
- |
until curl -sf {{ .Values.proxyd.gethRpc }};
do echo waiting for op-geth;
sleep 5;
done
containers:
- name: proxyd
image: {{ .Values.proxyd.image }}
ports:
- name: proxyd-rpc
containerPort: 8080
volumeMounts:
- name: proxyd-volume
mountPath: /etc/proxyd
---

apiVersion: v1
kind: Service
metadata:
name: proxyd
namespace: {{ .Release.Namespace }}
annotations:
{{- if .Values.proxyd.loadBalancerExternal }}
service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
service.beta.kubernetes.io/aws-load-balancer-type: external
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: {{ .Values.awsLoadBalancerSslCert }}
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
{{- end }}
spec:
selector:
name: proxyd
{{- if .Values.proxyd.loadBalancerExternal }}
type: LoadBalancer
{{- end }}
ports:
- name: proxyd-rpc-port
targetPort: proxyd-rpc
port: {{ .Values.proxyd.port }}
- name: proxyd-rpc-http
targetPort: proxyd-rpc
port: 80
- name: proxyd-rpc-https
targetPort: proxyd-rpc
port: 443

---

{{- end }}
7 changes: 7 additions & 0 deletions charts/mothership/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,10 @@ bundler:
loadBalancerExternal: false
gethRpc: http://node-1:8545
port: 4337

proxyd:
enabled: false
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/proxyd:v4.6.0
loadBalancerExternal: false
gethRpc: http://node-1:8545
port: 8080
4 changes: 4 additions & 0 deletions mothership/holesky-testnet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ opProposer:
bundler:
enabled: true
loadBalancerExternal: true

proxyd:
enabled: true
loadBalancerExternal: true

0 comments on commit e16eabb

Please sign in to comment.