Skip to content

Commit

Permalink
Add Pod.spec.topologySpreadConstraints to all charts (ethpandaops#176)
Browse files Browse the repository at this point in the history
* feat(prysm/erigon): Topology Spread Constraints

* add topologySpreadConstraints support

* support topologySpreadConstraints

* erigon/prysm: bump chart version and run make docs

* all: add Pod.spec.topologySpreadConstraints

* ethereum-node: bump deps

* ethereum-node: bump deps lock

* ethereum-node: make docs

* beaconchain-explorer/blockscout/dshackle: fixup non existant dependencies

* forki: use debian based image by default

* ci: ignore genesis-generator install

* forky: add values to be ran on charts testing

---------

Co-authored-by: rarecrumb <crumb@looksrare.org>
Co-authored-by: Kewei Zhang <keweizhang411@gmail.com>
  • Loading branch information
3 people authored May 10, 2023
1 parent cd2badd commit d84fe03
Show file tree
Hide file tree
Showing 166 changed files with 426 additions and 143 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ jobs:
--excluded-charts blockscout
--excluded-charts fauceth
--excluded-charts eth-faucet
--excluded-charts genesis-generator
6 changes: 3 additions & 3 deletions charts/beaconchain-explorer/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 10.16.2
digest: sha256:4dd3203f3c5accb616976649b2656c49f14017e3055ccbcc8b59180d57c3db36
generated: "2022-08-31T13:45:23.758590467+02:00"
version: 11.9.13
digest: sha256:e99b8ccc89621db99f5ff92fbdb178a236b95624fea6838606f4f6d495916055
generated: "2023-05-10T13:19:45.865804+02:00"
4 changes: 2 additions & 2 deletions charts/beaconchain-explorer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ icon: https://pbs.twimg.com/profile_images/1274442538057961474/-cZGkGhP_400x400.
sources:
- https://github.com/gobitfly/eth2-beaconchain-explorer
type: application
version: 0.1.3
version: 0.1.4
maintainers:
- name: skylenet
email: rafael@skyle.net
dependencies:
- name: postgresql
version: "10.x.x"
version: "11.x.x"
repository: "https://charts.bitnami.com/bitnami"
condition: postgresql.enabled
5 changes: 3 additions & 2 deletions charts/beaconchain-explorer/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# beaconchain-explorer

![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.1.4](https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Beacon chain explorer built using golang and using a PostgreSQL database for storing and indexing data.

Expand All @@ -15,7 +15,7 @@ Beacon chain explorer built using golang and using a PostgreSQL database for sto

| Repository | Name | Version |
|------------|------|---------|
| https://charts.bitnami.com/bitnami | postgresql | 10.x.x |
| https://charts.bitnami.com/bitnami | postgresql | 11.x.x |

## Values

Expand Down Expand Up @@ -74,6 +74,7 @@ Beacon chain explorer built using golang and using a PostgreSQL database for sto
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| terminationGracePeriodSeconds | int | `30` | How long to wait until the pod is forcefully terminated |
| tolerations | list | `[]` | Tolerations for pods |
| topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pods |
| updateStrategy | object | `{"type":"RollingUpdate"}` | Update stategy for the Statefulset |
| updateStrategy.type | string | `"RollingUpdate"` | Update stategy type |

Expand Down
Binary file not shown.
2 changes: 2 additions & 0 deletions charts/beaconchain-explorer/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ spec:
{{- toYaml .Values.affinity | nindent 8 }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
topologySpreadConstraints:
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
volumes:
{{- if .Values.extraVolumes }}
Expand Down
4 changes: 4 additions & 0 deletions charts/beaconchain-explorer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ terminationGracePeriodSeconds: 30
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

# -- Topology Spread Constraints for pods
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
topologySpreadConstraints: []

# -- Define the PodDisruptionBudget spec
# If not set then a PodDisruptionBudget will not be created
podDisruptionBudget: {}
Expand Down
2 changes: 1 addition & 1 deletion charts/besu/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ icon: https://launchpad.ethereum.org/static/media/hyperledger-besu-circle.b96368
sources:
- https://github.com/hyperledger/besu
type: application
version: 1.0.2
version: 1.0.3
maintainers:
- name: skylenet
email: rafael@skyle.net
Expand Down
3 changes: 2 additions & 1 deletion charts/besu/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# besu

![Version: 1.0.2](https://img.shields.io/badge/Version-1.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 1.0.3](https://img.shields.io/badge/Version-1.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

An Ethereum execution layer client designed to be enterprise-friendly for both public and private, permissioned network use cases. Besu is written in Java and released under the Apache 2.0 Licence.

Expand Down Expand Up @@ -92,6 +92,7 @@ An Ethereum execution layer client designed to be enterprise-friendly for both p
| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration |
| terminationGracePeriodSeconds | int | `300` | How long to wait until the pod is forcefully terminated |
| tolerations | list | `[]` | Tolerations for pods |
| topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pods |
| updateStrategy | object | `{"type":"RollingUpdate"}` | Update stategy for the Statefulset |
| updateStrategy.type | string | `"RollingUpdate"` | Update stategy type |
| wsPort | int | `8546` | WS Port |
Expand Down
2 changes: 2 additions & 0 deletions charts/besu/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ spec:
{{- toYaml .Values.affinity | nindent 8 }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
topologySpreadConstraints:
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
volumes:
- name: jwt
Expand Down
4 changes: 4 additions & 0 deletions charts/besu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ terminationGracePeriodSeconds: 300
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

# -- Topology Spread Constraints for pods
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
topologySpreadConstraints: []

# -- Define the PodDisruptionBudget spec
# If not set then a PodDisruptionBudget will not be created
podDisruptionBudget: {}
Expand Down
2 changes: 1 addition & 1 deletion charts/blobscan-indexer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: blobscan-indexer
description: Blobscan-indexer indexes blobs in MongoDB for use with Blobscan.
home: https://github.com/blobscan/blobscan-indexer
type: application
version: 0.1.0
version: 0.1.1
maintainers:
- name: samcm
email: sam.calder-mason@ethereum.org
3 changes: 2 additions & 1 deletion charts/blobscan-indexer/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# blobscan-indexer

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Blobscan-indexer indexes blobs in MongoDB for use with Blobscan.

Expand Down Expand Up @@ -60,3 +60,4 @@ Blobscan-indexer indexes blobs in MongoDB for use with Blobscan.
| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration |
| terminationGracePeriodSeconds | int | `30` | How long to wait until the pod is forcefully terminated |
| tolerations | list | `[]` | Tolerations for pods |
| topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pods |
4 changes: 3 additions & 1 deletion charts/blobscan-indexer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ spec:
{{- toYaml .Values.affinity | nindent 8 }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
topologySpreadConstraints:
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
volumes:
{{- if .Values.extraVolumes }}
{{ toYaml .Values.extraVolumes | nindent 8}}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/blobscan-indexer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ terminationGracePeriodSeconds: 30
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

# -- Topology Spread Constraints for pods
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
topologySpreadConstraints: []

# -- Define the PodDisruptionBudget spec
# If not set then a PodDisruptionBudget will not be created
podDisruptionBudget: {}
Expand Down
2 changes: 1 addition & 1 deletion charts/blobscan/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: blobscan
description: Blobscan is the first blockchain explorer that helps to navigate and visualize those EIP-4844 blobs
home: https://github.com/blobscan/blobscan
type: application
version: 0.1.0
version: 0.1.1
maintainers:
- name: samcm
email: sam.calder-mason@ethereum.org
3 changes: 2 additions & 1 deletion charts/blobscan/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# blobscan

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Blobscan is the first blockchain explorer that helps to navigate and visualize those EIP-4844 blobs

Expand Down Expand Up @@ -63,3 +63,4 @@ Blobscan is the first blockchain explorer that helps to navigate and visualize t
| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration |
| terminationGracePeriodSeconds | int | `30` | How long to wait until the pod is forcefully terminated |
| tolerations | list | `[]` | Tolerations for pods |
| topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pods |
4 changes: 3 additions & 1 deletion charts/blobscan/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ spec:
{{- toYaml .Values.affinity | nindent 8 }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
topologySpreadConstraints:
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
volumes:
{{- if .Values.extraVolumes }}
{{ toYaml .Values.extraVolumes | nindent 8}}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/blobscan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ terminationGracePeriodSeconds: 30
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

# -- Topology Spread Constraints for pods
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
topologySpreadConstraints: []

# -- Define the PodDisruptionBudget spec
# If not set then a PodDisruptionBudget will not be created
podDisruptionBudget: {}
Expand Down
6 changes: 3 additions & 3 deletions charts/blockscout/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 10.16.2
digest: sha256:4dd3203f3c5accb616976649b2656c49f14017e3055ccbcc8b59180d57c3db36
generated: "2022-08-31T13:44:54.065620684+02:00"
version: 11.9.13
digest: sha256:e99b8ccc89621db99f5ff92fbdb178a236b95624fea6838606f4f6d495916055
generated: "2023-05-10T13:21:47.452346+02:00"
4 changes: 2 additions & 2 deletions charts/blockscout/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ icon: https://github.com/blockscout/blockscout/raw/master/apps/block_scout_web/a
sources:
- https://github.com/blockscout/blockscout/
type: application
version: 0.1.3
version: 0.1.4
maintainers:
- name: skylenet
email: rafael@skyle.net
dependencies:
- name: postgresql
version: "10.x.x"
version: "11.x.x"
repository: "https://charts.bitnami.com/bitnami"
condition: postgresql.enabled
5 changes: 3 additions & 2 deletions charts/blockscout/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# blockscout

![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.1.4](https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

BlockScout provides a comprehensive, easy-to-use interface for users to view, confirm, and inspect transactions on EVM (Ethereum Virtual Machine) blockchains

Expand All @@ -15,7 +15,7 @@ BlockScout provides a comprehensive, easy-to-use interface for users to view, co

| Repository | Name | Version |
|------------|------|---------|
| https://charts.bitnami.com/bitnami | postgresql | 10.x.x |
| https://charts.bitnami.com/bitnami | postgresql | 11.x.x |

## Values

Expand Down Expand Up @@ -84,6 +84,7 @@ BlockScout provides a comprehensive, easy-to-use interface for users to view, co
| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration |
| terminationGracePeriodSeconds | int | `30` | How long to wait until the pod is forcefully terminated |
| tolerations | list | `[]` | Tolerations for pods |
| topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pods |
| updateStrategy | object | `{"type":"RollingUpdate"}` | Update stategy for the Statefulset |
| updateStrategy.type | string | `"RollingUpdate"` | Update stategy type |

Expand Down
Binary file removed charts/blockscout/charts/postgresql-10.16.2.tgz
Binary file not shown.
2 changes: 2 additions & 0 deletions charts/blockscout/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ spec:
{{- toYaml .Values.affinity | nindent 8 }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
topologySpreadConstraints:
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
volumes:
{{- if .Values.extraVolumes }}
Expand Down
4 changes: 4 additions & 0 deletions charts/blockscout/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ terminationGracePeriodSeconds: 30
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

# -- Topology Spread Constraints for pods
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
topologySpreadConstraints: []

# -- Define the PodDisruptionBudget spec
# If not set then a PodDisruptionBudget will not be created
podDisruptionBudget: {}
Expand Down
2 changes: 1 addition & 1 deletion charts/checkpointz/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: checkpointz
description: A beacon chain Checkpoint Sync provider
home: https://github.com/samcm/checkpointz
type: application
version: 0.1.2
version: 0.1.3
maintainers:
- name: samcm
email: sam.calder-mason@ethereum.org
3 changes: 2 additions & 1 deletion charts/checkpointz/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# checkpointz

![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A beacon chain Checkpoint Sync provider

Expand Down Expand Up @@ -71,3 +71,4 @@ A beacon chain Checkpoint Sync provider
| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration |
| terminationGracePeriodSeconds | int | `30` | How long to wait until the pod is forcefully terminated |
| tolerations | list | `[]` | Tolerations for pods |
| topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pods |
2 changes: 2 additions & 0 deletions charts/checkpointz/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ spec:
{{- toYaml .Values.affinity | nindent 8 }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
topologySpreadConstraints:
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
volumes:
{{- if .Values.extraVolumes }}
Expand Down
4 changes: 4 additions & 0 deletions charts/checkpointz/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ terminationGracePeriodSeconds: 30
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

# -- Topology Spread Constraints for pods
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
topologySpreadConstraints: []

# -- Define the PodDisruptionBudget spec
# If not set then a PodDisruptionBudget will not be created
podDisruptionBudget: {}
Expand Down
2 changes: 1 addition & 1 deletion charts/consensus-monitor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ icon: https://ethereum.org/static/c48a5f760c34dfadcf05a208dab137cc/31987/eth-dia
sources:
- https://github.com/ralexstokes/ethereum_consensus_monitor/
type: application
version: 0.1.1
version: 0.1.2
maintainers:
- name: skylenet
email: rafael@skyle.net
3 changes: 2 additions & 1 deletion charts/consensus-monitor/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# consensus-monitor

![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Web UI to monitor the ethereum consensus nodes via their beaconchain APIs.

Expand Down Expand Up @@ -55,6 +55,7 @@ Web UI to monitor the ethereum consensus nodes via their beaconchain APIs.
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| terminationGracePeriodSeconds | int | `30` | How long to wait until the pod is forcefully terminated |
| tolerations | list | `[]` | Tolerations for pods |
| topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pods |
| updateStrategy | object | `{"type":"RollingUpdate"}` | Update stategy for the Statefulset |
| updateStrategy.type | string | `"RollingUpdate"` | Update stategy type |

Expand Down
2 changes: 2 additions & 0 deletions charts/consensus-monitor/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ spec:
{{- toYaml .Values.affinity | nindent 8 }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
topologySpreadConstraints:
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
volumes:
{{- if .Values.extraVolumes }}
Expand Down
4 changes: 4 additions & 0 deletions charts/consensus-monitor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ terminationGracePeriodSeconds: 30
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

# -- Topology Spread Constraints for pods
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
topologySpreadConstraints: []

# -- Define the PodDisruptionBudget spec
# If not set then a PodDisruptionBudget will not be created
podDisruptionBudget: {}
Expand Down
6 changes: 3 additions & 3 deletions charts/dshackle/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 16.8.9
digest: sha256:229b73b6e9192b61243500e9497f8a67ce1df3a3fbe7f64105487e0eed0e4f7f
generated: "2022-04-28T23:13:12.927121038+07:00"
version: 16.13.2
digest: sha256:66dcce3f4e621b9d644aee4d3cb1845b158f9ed20e45eb2801c5462607e4b845
generated: "2023-05-10T13:22:49.733709+02:00"
Loading

0 comments on commit d84fe03

Please sign in to comment.