Skip to content

Commit

Permalink
Fix: service loadbalancer (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed Mar 21, 2024
1 parent 323eaf4 commit 9621804
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/dshackle/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion charts/dshackle/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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 |
Expand Down
7 changes: 7 additions & 0 deletions charts/dshackle/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 2 additions & 0 deletions charts/dshackle/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions charts/dshackle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ ingress:
service:
# -- Service type
type: ClusterIP
# -- Annotations for the Service
annotations: {}

# -- Affinity configuration for pods
affinity: {}
Expand Down

0 comments on commit 9621804

Please sign in to comment.