diff --git a/charts/bee/Chart.yaml b/charts/bee/Chart.yaml index be39155..66e559b 100644 --- a/charts/bee/Chart.yaml +++ b/charts/bee/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 appVersion: 1.17.5 name: bee -version: 0.14.2 +version: 0.14.3 kubeVersion: ">=1.19.0-0" description: Ethereum Swarm Bee Helm chart for Kubernetes home: https://www.ethswarm.org diff --git a/charts/bee/templates/service-headless.yaml b/charts/bee/templates/service-headless.yaml index 66b1acb..a87fc95 100644 --- a/charts/bee/templates/service-headless.yaml +++ b/charts/bee/templates/service-headless.yaml @@ -13,7 +13,11 @@ spec: port: {{ int (include "bee.config.api_port" .) }} protocol: TCP targetPort: api - - name: p2p + - name: p2p-udp + port: {{ int (include "bee.config.p2p_port" .) }} + protocol: UDP + targetPort: p2p + - name: p2p-tcp port: {{ int (include "bee.config.p2p_port" .) }} protocol: TCP targetPort: p2p @@ -44,10 +48,14 @@ spec: type: ClusterIP clusterIP: None ports: - - name: p2p + - name: p2p-tcp port: {{ int (include "bee.config.p2p_port" $root) }} protocol: TCP targetPort: p2p + - name: p2p-udp + port: {{ int (include "bee.config.p2p_port" $root) }} + protocol: UDP + targetPort: p2p selector: {{- include "bee.selectorLabels" $root | nindent 4 }} statefulset.kubernetes.io/pod-name: {{ include "bee.fullname" $root }}-{{ $i }} diff --git a/charts/bee/templates/service-p2p.yaml b/charts/bee/templates/service-p2p.yaml index 4f110a8..ee03370 100644 --- a/charts/bee/templates/service-p2p.yaml +++ b/charts/bee/templates/service-p2p.yaml @@ -16,13 +16,20 @@ spec: type: NodePort externalTrafficPolicy: Local ports: - - name: p2p + - name: p2p-tcp port: {{ int (include "bee.config.p2p_port" $root) }} protocol: TCP targetPort: p2p {{- if $root.Values.p2pFixedPort.enabled }} nodePort: {{ add $root.Values.p2pFixedPort.nodePortStart $i }} {{- end }} + - name: p2p-udp + port: {{ int (include "bee.config.p2p_port" $root) }} + protocol: UDP + targetPort: p2p + {{- if $root.Values.p2pFixedPort.enabled }} + nodePort: {{ add $root.Values.p2pFixedPort.nodePortStart $i }} + {{- end }} selector: {{- include "bee.selectorLabels" $root | nindent 4 }} statefulset.kubernetes.io/pod-name: {{ include "bee.fullname" $root }}-{{ $i }} diff --git a/charts/bee/templates/statefulset.yaml b/charts/bee/templates/statefulset.yaml index 175f6c7..d1456de 100644 --- a/charts/bee/templates/statefulset.yaml +++ b/charts/bee/templates/statefulset.yaml @@ -185,8 +185,11 @@ spec: name: api protocol: TCP - containerPort: {{ int (include "bee.config.p2p_port" .) }} - name: p2p + name: p2p-tcp protocol: TCP + - containerPort: {{ int (include "bee.config.p2p_port" .) }} + name: p2p-udp + protocol: UDP {{- if .Values.probesEnable }} {{- if index .Values.beeConfig "debug-api-enable" }} - containerPort: {{ int (include "bee.config.debug_api_port" .) }}