Skip to content

Commit

Permalink
fix: NodePort is duplicated, changed to automatic port assignment (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
CASL0 authored Mar 27, 2024
1 parent e5ae383 commit 6311587
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions charts/coturn/templates/service-tcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@ spec:
port: {{ .Values.coturn.ports.listening }}
protocol: TCP
targetPort: {{ .Values.coturn.ports.listening }}
{{- if eq .Values.service.type "NodePort" }}
nodePort: {{ .Values.coturn.port.listening }}
{{- end }}
- name: turn-tcp-tls
port: {{ .Values.coturn.ports.tlsListening }}
protocol: TCP
targetPort: {{ .Values.coturn.ports.tlsListening }}
{{- if eq .Values.service.type "NodePort" }}
nodePort: {{ .Values.coturn.port.tlsListening }}
{{- end }}
selector:
app.kubernetes.io/name: {{ .Release.Name }}-coturn
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down
6 changes: 0 additions & 6 deletions charts/coturn/templates/service-udp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@ spec:
port: {{ .Values.coturn.ports.listening }}
protocol: UDP
targetPort: {{ .Values.coturn.ports.listening }}
{{- if eq .Values.service.type "NodePort" }}
nodePort: {{ .Values.coturn.port.tlsListening }}
{{- end }}
- name: turn-udp-dtls
port: {{ .Values.coturn.ports.tlsListening }}
protocol: UDP
targetPort: {{ .Values.coturn.ports.tlsListening }}
{{- if eq .Values.service.type "NodePort" }}
nodePort: {{ .Values.coturn.port.tlsListening }}
{{- end }}
selector:
app.kubernetes.io/name: {{ .Release.Name }}-coturn
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down

0 comments on commit 6311587

Please sign in to comment.