Skip to content

Commit

Permalink
chore: add udp to bee p2p services
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vandot committed Nov 8, 2023
1 parent 82de939 commit 2d2da20
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
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: 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
Expand Down
12 changes: 10 additions & 2 deletions charts/bee/templates/service-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down
9 changes: 8 additions & 1 deletion charts/bee/templates/service-p2p.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 4 additions & 1 deletion charts/bee/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" .) }}
Expand Down

0 comments on commit 2d2da20

Please sign in to comment.