diff options
Diffstat (limited to 'roles/streaming/icecast/templates/pod-spec.yml.j2')
-rw-r--r-- | roles/streaming/icecast/templates/pod-spec.yml.j2 | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/roles/streaming/icecast/templates/pod-spec.yml.j2 b/roles/streaming/icecast/templates/pod-spec.yml.j2 new file mode 100644 index 00000000..5dc0b086 --- /dev/null +++ b/roles/streaming/icecast/templates/pod-spec.yml.j2 @@ -0,0 +1,31 @@ +securityContext: + allowPrivilegeEscalation: false + runAsUser: 990 + runAsGroup: 990 +containers: +- name: icecast + image: registry.gitlab.com/spreadspace/docker/icecast:{{ item.value.image_version }} + imagePullPolicy: Always + resources: + limits: + memory: "512Mi" + args: + - icecast2 + - -c + - /srv/icecast.xml + volumeMounts: + - name: home + mountPath: /srv/icecast.xml + subPath: icecast.xml + readOnly: true + - name: home + mountPath: /srv/logs + subPath: logs + ports: + - containerPort: 8080 + hostPort: {{ item.value.port }} + +volumes: +- name: home + hostPath: + path: "{{ icecast_base_path }}/{{ item.key }}" |