From 9621804d0e8b41c831bcf9c92158cc06ea4b80a5 Mon Sep 17 00:00:00 2001 From: Barnabas Busa Date: Thu, 21 Mar 2024 12:22:54 +0100 Subject: [PATCH] Fix: service loadbalancer (#302) --- charts/dshackle/Chart.yaml | 2 +- charts/dshackle/README.md | 3 ++- charts/dshackle/templates/_helpers.tpl | 7 +++++++ charts/dshackle/templates/service.yaml | 2 ++ charts/dshackle/values.yaml | 2 ++ 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/charts/dshackle/Chart.yaml b/charts/dshackle/Chart.yaml index d5d7e360..36a7b9e0 100644 --- a/charts/dshackle/Chart.yaml +++ b/charts/dshackle/Chart.yaml @@ -8,7 +8,7 @@ icon: https://avatars.githubusercontent.com/u/49622339?s=200&v=4 sources: - https://github.com/emeraldpay/dshackle type: application -version: 0.1.7 +version: 0.1.8 maintainers: - name: skylenet email: rafael@skyle.net diff --git a/charts/dshackle/README.md b/charts/dshackle/README.md index ac9c856f..04112701 100644 --- a/charts/dshackle/README.md +++ b/charts/dshackle/README.md @@ -1,7 +1,7 @@ # dshackle -![Version: 0.1.7](https://img.shields.io/badge/Version-0.1.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) +![Version: 0.1.8](https://img.shields.io/badge/Version-0.1.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) Emerald Dshackle is a Fault Tolerant Load Balancer for Blockchain API. Support for standard Bitcoin and Ethereum JSON RPC API over HTTP and WebSocket. @@ -71,6 +71,7 @@ Emerald Dshackle is a Fault Tolerant Load Balancer for Blockchain API. Support f | resources | object | `{}` | Resource requests and limits | | secretEnv | object | `{"INFURA_USER":"your-infura-secret","REDIS_PASSWORD":"yourRedisSecret"}` | Additional env variables injected via a created secret | | securityContext | object | See `values.yaml` | The security context for pods | +| service.annotations | object | `{}` | Annotations for the Service | | service.type | string | `"ClusterIP"` | Service type | | serviceAccount.annotations | object | `{}` | Annotations to add to the service account | | serviceAccount.create | bool | `true` | Specifies whether a service account should be created | diff --git a/charts/dshackle/templates/_helpers.tpl b/charts/dshackle/templates/_helpers.tpl index f0894788..81916a4b 100644 --- a/charts/dshackle/templates/_helpers.tpl +++ b/charts/dshackle/templates/_helpers.tpl @@ -60,3 +60,10 @@ Create the name of the service account to use {{- default "default" .Values.serviceAccount.name }} {{- end }} {{- end }} + +{{/* +HTTP port +*/}} +{{- define "dshackle.httpPort" -}} +{{- default 8545 .Values.httpPort }} +{{- end }} diff --git a/charts/dshackle/templates/service.yaml b/charts/dshackle/templates/service.yaml index 9c49b76c..10fc143e 100644 --- a/charts/dshackle/templates/service.yaml +++ b/charts/dshackle/templates/service.yaml @@ -4,6 +4,8 @@ metadata: name: {{ include "dshackle.fullname" . }} labels: {{- include "dshackle.labels" . | nindent 4 }} + annotations: + {{ toYaml .Values.service.annotations | nindent 4 }} spec: type: {{ .Values.service.type }} ports: diff --git a/charts/dshackle/values.yaml b/charts/dshackle/values.yaml index 29e69935..72dd6537 100644 --- a/charts/dshackle/values.yaml +++ b/charts/dshackle/values.yaml @@ -95,6 +95,8 @@ ingress: service: # -- Service type type: ClusterIP + # -- Annotations for the Service + annotations: {} # -- Affinity configuration for pods affinity: {}