-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
18 changed files
with
967 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dependencies: | ||
- name: common | ||
repository: https://charts.stakewise.io/ | ||
version: 1.0.0 | ||
digest: sha256:a52d823dcd535c64eafc9df56fe41455c602032e084b8adcaa34e536451d2ab2 | ||
generated: "2023-01-09T12:35:46.013108+04:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: v2 | ||
name: reth | ||
version: 1.0.0 | ||
kubeVersion: "^1.20.0-0" | ||
description: Reth (short for Rust Ethereum, pronunciation) is an Ethereum full node implementation that is focused on being user-friendly, highly modular, as well as being fast and efficient. | ||
type: application | ||
icon: https://storage.googleapis.com/stakewise-charts/stakewise.png | ||
keywords: | ||
- ethereum | ||
- blockchain | ||
- reth | ||
- p2p | ||
home: https://reth.rs/ | ||
sources: | ||
- https://github.com/paradigmxyz/reth | ||
maintainers: | ||
- name: Dmitri Tsumak | ||
email: [email protected] | ||
appVersion: v1.0.0 | ||
|
||
dependencies: | ||
- name: common | ||
version: 1.x.x | ||
repository: https://charts.stakewise.io/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{- define "reth.p2pPort" -}} | ||
{{- printf "30303" -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{- if or .Values.global.rbac.create .Values.rbac.create }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "common.names.clusterRoleName" . }} | ||
labels: | ||
{{- include "common.labels.standard" . | nindent 4 }} | ||
rules: | ||
{{- toYaml .Values.rbac.clusterRules | nindent 0 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if or .Values.global.rbac.create .Values.rbac.create }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "common.names.clusterRoleName" . }} | ||
labels: | ||
{{- include "common.labels.standard" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ include "common.names.clusterRoleName" . }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "common.names.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- if .Values.podDisruptionBudget.enabled }} | ||
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }} | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "common.names.fullname" . }} | ||
labels: | ||
{{- include "common.labels.standard" . | nindent 4 }} | ||
spec: | ||
{{- if .Values.podDisruptionBudget.minAvailable }} | ||
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }} | ||
{{- end }} | ||
{{- if .Values.podDisruptionBudget.maxUnavailable }} | ||
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
{{- include "common.labels.matchLabels" . | nindent 6 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{{- if and (or .Values.global.metrics.enabled .Values.metrics.enabled) | ||
(or .Values.global.metrics.prometheusRule.enabled .Values.metrics.prometheusRule.enabled) }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: {{ include "common.names.fullname" . }} | ||
{{- if .Values.metrics.prometheusRule.namespace }} | ||
namespace: {{ .Values.metrics.prometheusRule.namespace }} | ||
{{- else }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
{{- end }} | ||
labels: | ||
{{- include "common.labels.standard" . | nindent 4 }} | ||
{{- if .Values.metrics.prometheusRule.additionalLabels }} | ||
{{- toYaml .Values.metrics.prometheusRule.additionalLabels | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
groups: | ||
{{- with .Values.metrics.prometheusRule.rules }} | ||
- name: {{ include "common.names.fullname" $ }} | ||
rules: {{- tpl (toYaml .) $ | nindent 8 }} | ||
{{- end }} | ||
{{- if .Values.metrics.prometheusRule.default }} | ||
- name: {{ include "common.names.fullname" $ }}-default | ||
rules: | ||
- alert: RethNodeDown | ||
expr: up{job="{{ include "common.names.fullname" . }}"} == 0 | ||
for: 5m | ||
labels: | ||
severity: critical | ||
annotations: | ||
summary: Reth Node {{ printf "{{ $labels.instance }}" }} down | ||
description: Reth Node {{ printf "{{ $labels.instance }}" }} is down | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{- if or .Values.global.rbac.create .Values.rbac.create -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: {{ include "common.names.fullname" . }} | ||
labels: | ||
{{- include "common.labels.standard" . | nindent 4 }} | ||
rules: | ||
{{- toYaml .Values.rbac.rules | nindent 0 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- if or .Values.global.rbac.create .Values.rbac.create }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: {{ include "common.names.serviceAccountName" . }} | ||
labels: | ||
{{- include "common.labels.standard" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: {{ include "common.names.serviceAccountName" . }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "common.names.serviceAccountName" . }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{- if .Values.global.JWTSecret }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "common.names.fullname" . }} | ||
labels: | ||
{{- include "common.labels.standard" . | nindent 4 }} | ||
type: Opaque | ||
data: | ||
jwtsecret: {{ .Values.global.JWTSecret | b64enc | quote }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{- if .Values.p2pNodePort.enabled -}} | ||
{{- range $i, $e := until (int .Values.global.replicaCount) }} | ||
{{- $port := add $.Values.p2pNodePort.startAt $i -}} | ||
{{- if hasKey $.Values.p2pNodePort.replicaToNodePort ($i | toString) -}} | ||
{{ $port = index $.Values.p2pNodePort.replicaToNodePort ($i | toString) }} | ||
{{- end }} | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "common.names.fullname" $ }}-{{ $i }} | ||
labels: | ||
{{- include "common.labels.standard" $ | nindent 4 }} | ||
pod: "{{ include "common.names.fullname" $ }}-{{ $i }}" | ||
type: p2p | ||
{{- with $.Values.p2pNodePort.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
type: {{ $.Values.p2pNodePort.type }} | ||
externalTrafficPolicy: Local | ||
ports: | ||
- name: p2p-tcp | ||
port: {{ include "reth.p2pPort" $ }} | ||
protocol: TCP | ||
targetPort: {{ $port }} | ||
nodePort: {{ $port }} | ||
{{- if eq $.Values.p2pNodePort.type "NodePort" }} | ||
- name: p2p-udp | ||
port: {{ include "reth.p2pPort" $ }} | ||
protocol: UDP | ||
targetPort: p2p-udp | ||
nodePort: {{ $port }} | ||
{{- end }} | ||
selector: | ||
{{- include "common.labels.matchLabels" $ | nindent 4 }} | ||
statefulset.kubernetes.io/pod-name: "{{ include "common.names.fullname" $ }}-{{ $i }}" | ||
|
||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{{- if or .Values.http.enabled .Values.ws.enabled }} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "common.names.fullname" . }} | ||
labels: | ||
{{- include "common.labels.standard" . | nindent 4 }} | ||
spec: | ||
{{- if .Values.svcHeadless }} | ||
clusterIP: None | ||
{{- end }} | ||
{{- if .Values.sessionAffinity.enabled }} | ||
sessionAffinity: ClientIP | ||
sessionAffinityConfig: | ||
clientIP: | ||
timeoutSeconds: {{ .Values.sessionAffinity.timeoutSeconds }} | ||
{{- end }} | ||
type: ClusterIP | ||
ports: | ||
{{- if .Values.global.JWTSecret }} | ||
- name: authrpc | ||
port: {{ .Values.authRpc.port }} | ||
targetPort: authrpc | ||
{{- end }} | ||
{{- if .Values.http.enabled }} | ||
- name: http | ||
port: {{ .Values.http.port }} | ||
targetPort: http | ||
{{- end }} | ||
{{- if .Values.ws.enabled }} | ||
- name: ws | ||
port: {{ .Values.ws.port }} | ||
targetPort: ws | ||
{{- end }} | ||
{{- if .Values.global.metrics.enabled }} | ||
- name: metrics | ||
port: {{ .Values.metrics.port }} | ||
targetPort: metrics | ||
{{- end }} | ||
selector: | ||
{{- include "common.labels.matchLabels" . | nindent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- if or .Values.global.serviceAccount.create .Values.serviceAccount.create -}} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "common.names.serviceAccountName" . }} | ||
labels: | ||
{{- include "common.labels.standard" . | nindent 4 }} | ||
{{- with .Values.serviceAccount.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{- if and (or .Values.global.metrics.enabled .Values.metrics.enabled) | ||
(or .Values.global.metrics.serviceMonitor.enabled .Values.metrics.serviceMonitor.enabled) }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ template "common.names.fullname" . }} | ||
{{- if .Values.metrics.serviceMonitor.namespace }} | ||
namespace: {{ .Values.metrics.serviceMonitor.namespace }} | ||
{{- else }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
{{- end }} | ||
labels: | ||
{{- include "common.labels.standard" . | nindent 4 }} | ||
{{- if .Values.metrics.serviceMonitor.additionalLabels }} | ||
{{- toYaml .Values.metrics.serviceMonitor.additionalLabels | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
endpoints: | ||
- port: metrics | ||
path: / | ||
{{- if .Values.metrics.serviceMonitor.interval }} | ||
interval: {{ .Values.metrics.serviceMonitor.interval }} | ||
{{- end }} | ||
{{- if .Values.metrics.serviceMonitor.scrapeTimeout }} | ||
scrapeTimeout: {{ .Values.metrics.serviceMonitor.scrapeTimeout }} | ||
{{- end }} | ||
{{- if .Values.metrics.serviceMonitor.honorLabels }} | ||
honorLabels: {{ .Values.metrics.serviceMonitor.honorLabels }} | ||
{{- end }} | ||
{{- if .Values.metrics.serviceMonitor.relabelings }} | ||
relabelings: {{- toYaml .Values.metrics.serviceMonitor.relabelings | nindent 6 }} | ||
{{- end }} | ||
{{- if .Values.metrics.serviceMonitor.metricRelabelings }} | ||
metricRelabelings: {{- toYaml .Values.metrics.serviceMonitor.metricRelabelings | nindent 6 }} | ||
{{- end }} | ||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace }} | ||
selector: | ||
matchLabels: | ||
{{- include "common.labels.matchLabels" . | nindent 6 }} | ||
{{- end }} |
Oops, something went wrong.