Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable wss on juno node #40

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/juno-node/templates/svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
addToHostAliases: "true"
fqdn: {{ .Values.svc.fdqn }}
annotations:
cloud.google.com/backend-config: '{"ports": {"{{ $.Values.svc.targetPort }}":"{{ .Values.deployment.projectName }}"}}'
cloud.google.com/backend-config: '{"ports": {"{{ $.Values.svc.healthTargetPort }}":"{{ .Values.deployment.projectName }}"}}'
cloud.google.com/neg: '{"ingress": true}'
spec:
type: {{ .Values.svc.clustertype }}
Expand All @@ -18,7 +18,7 @@ spec:
timeoutSeconds: 30
ports:
{{- range .Values.deployment.port }}
- port: {{ $.Values.svc.targetPort }}
- port: {{ . }}
name: port-{{ . }}
targetPort: {{ . }}
protocol: TCP
Expand Down
19 changes: 17 additions & 2 deletions charts/juno-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ deployment:
memory: 8Gi
port:
- 6060
- 6061

### Container Arguments
args:
Expand All @@ -24,6 +25,9 @@ args:
--http: "true"
--metrics: "true"
--pending-poll-interval: "2s"
--ws: "true"
--ws-port: "6061"

### Node selector and Tanits
nodeSelector:
enabled: false
Expand All @@ -44,17 +48,18 @@ serviceAccount:
svc:
clustertype: ClusterIP # Support: LoadBalancer, NodePort, ClusterIP
fdqn: juno.cluster.local
targetPort: "6060"
healthTargetPort: "6060"
# Ingress
ingress:
enabled: true
host: "rpc-goerli-1-juno.nethermind.dev"
## ALB Backend Config
backendConfig:
timeoutSec: 300
sessionAffinity:
affinityType: "CLIENT_IP"
connectionDraining:
drainingTimeoutSec: 30
drainingTimeoutSec: 300
healthCheck:
checkIntervalSec: 15
timeoutSec: 15
Expand Down Expand Up @@ -82,6 +87,16 @@ svc:
name: goerli
port:
number: 6060
- host: "wss-goerli-juno.nethermind.dev"
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: goerli
port:
number: 6061

### Horizontal pod scaling
hpa:
Expand Down