Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/bee/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
appVersion: 2.5.0
name: bee
version: 0.16.10
version: 0.16.11
kubeVersion: ">=1.19.0-0"
description: Ethereum Swarm Bee Helm chart for Kubernetes
home: https://www.ethswarm.org
Expand Down
2 changes: 1 addition & 1 deletion charts/bee/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $ helm install --generate-name ethersphere/bee

## Introduction

This chart deploys a [Ethereum Swarm Bee](https://github.com/ethersphere/bee) onto a Kubernetes cluster using the Helm package manager. It creates ConfigMap, Deployment and Service Kubernetes objects, while Ingress and ServiceAccount are optional.
This chart bootstraps a Bee node. It creates ConfigMap, Deployment and Service Kubernetes objects, while Ingress and ServiceAccount are optional.

## Prerequisites

Expand Down
2 changes: 1 addition & 1 deletion charts/bee/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1. Get the application URL by running these commands:
1. Get the Bee address:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range .paths }}
Expand Down
5 changes: 5 additions & 0 deletions charts/bee/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ Define config parameters api-addr, p2p-addr
{{- $p2p_port := (split ":" $full_p2p_addr )._1 }}
{{- printf "%s" $p2p_port -}}
{{- end -}}
{{- define "bee.config.p2p-wss_port" -}}
{{- $full_p2p_wss_addr := index .Values.beeConfig "p2p-wss-port" -}}
{{- $p2p_wss_port := (split ":" $full_p2p_wss_addr )._1 }}
{{- printf "%s" $p2p_wss_port -}}
{{- end -}}


{{/*
Expand Down
8 changes: 6 additions & 2 deletions charts/bee/templates/service-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ spec:
- name: p2p-udp
port: {{ int (include "bee.config.p2p_port" .) }}
protocol: UDP
targetPort: p2p
targetPort: p2p-udp
- name: p2p-tcp
port: {{ int (include "bee.config.p2p_port" .) }}
protocol: TCP
targetPort: p2p
targetPort: p2p-tcp
- name: p2p-wss
port: {{ int (include "bee.config.p2p-wss_port" .) }}
protocol: TCP
targetPort: p2p-wss
selector:
{{- include "bee.selectorLabels" . | nindent 4 }}
type: {{ .Values.service.type }}
Expand Down
7 changes: 7 additions & 0 deletions charts/bee/templates/service-p2p.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ spec:
{{- if $root.Values.p2pFixedPort.enabled }}
nodePort: {{ add $root.Values.p2pFixedPort.nodePortStart $i }}
{{- end }}
- name: p2p-wss
port: {{ int (include "bee.config.p2p-wss_port" $root) }}
protocol: TCP
targetPort: p2p-wss
{{- if $root.Values.p2pWssFixedPort.enabled }}
nodePort: {{ add $root.Values.p2pWssFixedPort.nodePortStart $i }}
{{- end }}
selector:
{{- include "bee.selectorLabels" $root | nindent 4 }}
statefulset.kubernetes.io/pod-name: {{ include "bee.fullname" $root }}-{{ $i }}
Expand Down
3 changes: 3 additions & 0 deletions charts/bee/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ spec:
- containerPort: {{ int (include "bee.config.p2p_port" .) }}
name: p2p-udp
protocol: UDP
- containerPort: {{ int (include "bee.config.p2p-wss_port" .) }}
name: p2p-wss
protocol: TCP
{{- if .Values.probesEnable }}
livenessProbe:
httpGet:
Expand Down
4 changes: 3 additions & 1 deletion charts/bee/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,13 @@ beeConfig:
api-addr: :1633
## P2P listen address
p2p-addr: :1634
## P2P WSS listen address
p2p-wss-port: :1635
## Set the run mode - light by default
full-node: true
## ID of the Swarm network - 10 by default
network-id: 1
autotls-enabled: true
p2p-wss-port: "1635"

## If enabled, for NodePort (p2p-wss service)
## the Kubernetes control plane will allocate a port from a range (default: 30000-32767)
Expand All @@ -211,6 +212,7 @@ p2pWssFixedPort:
nodePortStart: 31001
publicIpUrl: http://ifconfig.me/ip


## Password for decrypting bee keys (please set it for production deployments)
## If not set, it will be automatically generated
password:
Expand Down