summaryrefslogtreecommitdiff
path: root/roles/apps/coturn/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-06-30 16:09:52 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-06-30 16:09:52 +0200
commitb8a5b98ee991669ef16eed50b9fa221eecf27d87 (patch)
treecc695018cdc96ce4d4fd715e087e567291d62f7e /roles/apps/coturn/templates
parentkubernetes: add standalone/pod role (diff)
apps/coturn: migrate to new standalone pod role
Diffstat (limited to 'roles/apps/coturn/templates')
-rw-r--r--roles/apps/coturn/templates/pod-spec.yml.j232
-rw-r--r--roles/apps/coturn/templates/pod.yml.j237
2 files changed, 32 insertions, 37 deletions
diff --git a/roles/apps/coturn/templates/pod-spec.yml.j2 b/roles/apps/coturn/templates/pod-spec.yml.j2
new file mode 100644
index 00000000..d157af37
--- /dev/null
+++ b/roles/apps/coturn/templates/pod-spec.yml.j2
@@ -0,0 +1,32 @@
+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
diff --git a/roles/apps/coturn/templates/pod.yml.j2 b/roles/apps/coturn/templates/pod.yml.j2
deleted file mode 100644
index 7c127c13..00000000
--- a/roles/apps/coturn/templates/pod.yml.j2
+++ /dev/null
@@ -1,37 +0,0 @@
-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