diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-03-26 01:38:00 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-03-26 01:38:00 +0100 |
commit | c12adbfa7382a1ef30bbb23d2b8911b09fe5edd5 (patch) | |
tree | 18da68a0028310ec4b503cc4ff69b187c8efd3bc /roles/apps/coturn/templates/pod.yml.j2 | |
parent | move some roles to app/ (diff) |
add app coturn (WIP)
Diffstat (limited to 'roles/apps/coturn/templates/pod.yml.j2')
-rw-r--r-- | roles/apps/coturn/templates/pod.yml.j2 | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/roles/apps/coturn/templates/pod.yml.j2 b/roles/apps/coturn/templates/pod.yml.j2 new file mode 100644 index 00000000..7c127c13 --- /dev/null +++ b/roles/apps/coturn/templates/pod.yml.j2 @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "coturn-{{ coturn_realm }}" +spec: + securityContext: + allowPrivilegeEscalation: false + runAsUser: {{ coturn_uid }} + runAsGroup: {{ coturn_gid }} + hostNetwork: true + containers: + - name: coturn + image: "instrumentisto/coturn:{{ coturn_version }}" + args: + - --log-file=stdout + resources: + limits: + memory: "1Gi" + volumeMounts: + - name: config + mountPath: /etc/coturn/ + readOnly: true + - name: run + mountPath: /var/run + - name: lib + mountPath: /var/lib/coturn + volumes: + - name: config + hostPath: + path: "{{ coturn_base_path }}/{{ coturn_realm }}/config/" + type: Directory + - name: run + emptyDir: + medium: Memory + - name: lib + emptyDir: + medium: Memory |