Skip to content

Commit

Permalink
mostly functionnal op-geth
Browse files Browse the repository at this point in the history
  • Loading branch information
coutug committed Sep 13, 2024
1 parent 2c840d6 commit b891e36
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 331 deletions.
11 changes: 2 additions & 9 deletions charts/geth/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@
Welcome to geth, an execution engine for EVM network.

## Network Config ##
Predefined Network: {{ .Values.network | default "No" }}
ChainID: {{ .Values.networkID | default "Unknown" }}
Predefined Network: {{ .Values.geth.network | default "No" }}

## For local env ##
Please run the following command to have access to the geth.
$ kubectl port-forward service/{{ .Release.Name }} {{- if .Values.rpc.http.enabled }} {{ .Values.rpc.http.port.hostPort }}{{- end }} {{- if .Values.authrpc.enabled }} {{ .Values.authrpc.port.hostPort }} {{- end }} {{- if .Values.rpc.ws.enabled }} {{ .Values.rpc.ws.port.hostPort }}{{- end }} {{- if .Values.metrics.enabled }} {{ .Values.metrics.port.hostPort }}{{- end }}
$ kubectl port-forward service/{{ .Release.Name }} {{- if .Values.geth.http.enabled }} {{ .Values.geth.http.port }}{{- end }} {{- if .Values.geth.authrpc.enabled }} {{ .Values.geth.authrpc.port }} {{- end }} {{- if .Values.geth.ws.enabled }} {{ .Values.geth.ws.port }}{{- end }} {{- if .Values.geth.metrics.enabled }} {{ .Values.geth.metrics.port }}{{- end }}

## For logs ##
$ kubectl logs -f service/{{ include "geth.fullname" . }}

{{- if .Values.authrpc.jwtSecret.value }}

## SECURITY WARNING ##
Your jwt is in plain text in your config. Please create your own secret and deploy it independantly from the chart to keep it more secure.
{{- end }}
2 changes: 1 addition & 1 deletion charts/geth/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Secret
metadata:
name: jwtSecret
name: jwt-secret
stringData:
jwtSecret: {{ .Values.geth.jwt.fromLiteral }}
{{- end }}
10 changes: 5 additions & 5 deletions charts/geth/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,32 @@ metadata:
spec:
type: {{ .Values.service.type }}
ports:
# HTTP RPC
{{- if .Values.geth.http.enabled }}
# HTTP RPC
- name: http-rpc
port: {{ .Values.geth.http.port }}
targetPort: {{ .Values.geth.http.port }}
{{- end }}
# WS RPC
{{- if .Values.geth.ws.enabled }}
# WS RPC
- name: ws-rpc
port: {{ .Values.geth.ws.port }}
targetPort: {{ .Values.geth.ws.port }}
{{- end }}
# AuthRPC
{{- if .Values.geth.authrpc.enabled }}
# AuthRPC
- name: auth-rpc
port: {{ .Values.geth.authrpc.port }}
targetPort: {{ .Values.geth.authrpc.port }}
{{- end }}
# Metrics
{{- if .Values.geth.metrics.enabled }}
# Metrics
- name: metrics
port: {{ .Values.geth.metrics.port }}
targetPort: {{ .Values.geth.metrics.port }}
{{- end }}
# pprof
{{- if .Values.geth.pprof.enabled }}
# pprof
- name: pprof
port: {{ .Values.geth.pprof.port }}
targetPort: {{ .Values.geth.pprof.port }}
Expand Down
198 changes: 0 additions & 198 deletions charts/geth/templates/statefulset-old.yaml

This file was deleted.

Loading

0 comments on commit b891e36

Please sign in to comment.