diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-04-23 22:46:12 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-04-23 22:46:12 +0200 |
commit | 476c03d6003f21cbf7fd83f18738ab06c1cf6230 (patch) | |
tree | b5cc7c4d1737b71dc6c29628595398df6bbe4596 /roles/streaming/icecast/templates/pod-spec.yml.j2 | |
parent | sgg-icecast: standalone kubelet (diff) |
icecast2 role and test deployment
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 }}" |