Skip to content

Commit

Permalink
Merge pull request #11 from jessebot/add-node-port-for-coturn
Browse files Browse the repository at this point in the history
add nodePort for both services
  • Loading branch information
cloudymax authored Jul 29, 2023
2 parents e99324f + 7007895 commit 3d54558
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/coturn/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: coturn
type: application
description: A Helm chart to deploy coturn
home: "https://github.com/jessebot/coturn-chart"
version: 4.1.0
version: 4.1.1
appVersion: 4.6.2
sources:
- "https://github.com/jessebot/coturn-chart"
Expand Down
5 changes: 2 additions & 3 deletions charts/coturn/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coturn

![Version: 4.0.1](https://img.shields.io/badge/Version-4.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.6.2](https://img.shields.io/badge/AppVersion-4.6.2-informational?style=flat-square)
![Version: 4.1.1](https://img.shields.io/badge/Version-4.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.6.2](https://img.shields.io/badge/AppVersion-4.6.2-informational?style=flat-square)

A Helm chart to deploy coturn

Expand All @@ -20,7 +20,7 @@ A Helm chart to deploy coturn

| Repository | Name | Version |
|------------|------|---------|
| oci://registry-1.docker.io/bitnamicharts | postgresql | 12.6.9 |
| oci://registry-1.docker.io/bitnamicharts | postgresql | 12.7.1 |

## Values

Expand Down Expand Up @@ -64,7 +64,6 @@ A Helm chart to deploy coturn
| persistence.size | string | `"1Mi"` | size of the PVC, ignored if persistence.existingClaim passed in |
| persistence.storageClass | string | `""` | storageClass for the PVC, ignored if persistence.existingClaim passed in |
| postgresql.enabled | bool | `false` | enables bitnami postgresql subchart, you can disable to use external db |
| postgresql.global.postgresql.auth | object | `{"database":"coturn","existingSecret":"","password":"","secretKeys":{"adminPasswordKey":"postgresPassword","database":"database","hostname":"hostname","userPasswordKey":"password","username":"username"},"username":"coturn"}` | global.postgresql.auth overrides postgresql.auth |
| postgresql.global.postgresql.auth.database | string | `"coturn"` | database to create, ignored if existingSecret is passed in |
| postgresql.global.postgresql.auth.existingSecret | string | `""` | name of existing Secret to use for postgresql credentials |
| postgresql.global.postgresql.auth.password | string | `""` | password for db, autogenerated if empty & existingSecret empty |
Expand Down
6 changes: 6 additions & 0 deletions charts/coturn/templates/service-tcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ 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: 6 additions & 0 deletions charts/coturn/templates/service-udp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ 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
2 changes: 1 addition & 1 deletion charts/coturn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ postgresql:
enabled: false
global:
postgresql:
# -- global.postgresql.auth overrides postgresql.auth
# global.postgresql.auth overrides postgresql.auth
auth:
# -- username for database, ignored if existingSecret is passed in
username: "coturn"
Expand Down

0 comments on commit 3d54558

Please sign in to comment.