diff options
Diffstat (limited to 'roles/streaming/icecast/templates/pod-spec.yml.j2')
-rw-r--r-- | roles/streaming/icecast/templates/pod-spec.yml.j2 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/roles/streaming/icecast/templates/pod-spec.yml.j2 b/roles/streaming/icecast/templates/pod-spec.yml.j2 index 5dc0b086..bac1ac3b 100644 --- a/roles/streaming/icecast/templates/pod-spec.yml.j2 +++ b/roles/streaming/icecast/templates/pod-spec.yml.j2 @@ -22,8 +22,14 @@ containers: mountPath: /srv/logs subPath: logs ports: - - containerPort: 8080 - hostPort: {{ item.value.port }} +{% for listener in item.value.listeners %} + - containerPort: {{ listener.port }} + hostPort: {{ listener.port }} +{% if 'shoutcast_mountpoint' in listener %} + - containerPort: {{ listener.port + 1 }} + hostPort: {{ listener.port + 1 }} +{% endif %} +{% endfor %} volumes: - name: home |