summaryrefslogtreecommitdiff
path: root/roles/apps/collabora/code/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apps/collabora/code/templates')
-rw-r--r--roles/apps/collabora/code/templates/pod-spec.yml.j225
-rw-r--r--roles/apps/collabora/code/templates/pod.yml.j230
2 files changed, 25 insertions, 30 deletions
diff --git a/roles/apps/collabora/code/templates/pod-spec.yml.j2 b/roles/apps/collabora/code/templates/pod-spec.yml.j2
new file mode 100644
index 00000000..04d2d25a
--- /dev/null
+++ b/roles/apps/collabora/code/templates/pod-spec.yml.j2
@@ -0,0 +1,25 @@
+containers:
+- name: collabora-code
+ image: "collabora/code{% if 'custom_image' in item.value %}/{{ item.key }}{% endif %}:{{ item.value.version }}"
+ resources:
+ limits:
+ memory: "4Gi"
+ env:
+ - name: "DONT_GEN_SSL_CERT"
+ value: "1"
+ - name: "extra_params"
+ value: "--o:ssl.enable=false --o:ssl.termination=true"
+ volumeMounts:
+ - name: config
+ mountPath: /etc/loolwsd/loolwsd.xml
+ subPath: loolwsd.xml
+ readOnly: true
+ ports:
+ - containerPort: 9980
+ hostPort: {{ item.value.port }}
+ hostIP: 127.0.0.1
+volumes:
+- name: config
+ hostPath:
+ path: "{{ collabora_code_base_path }}/{{ item.key }}/config/"
+ type: Directory
diff --git a/roles/apps/collabora/code/templates/pod.yml.j2 b/roles/apps/collabora/code/templates/pod.yml.j2
deleted file mode 100644
index 53fb4c0d..00000000
--- a/roles/apps/collabora/code/templates/pod.yml.j2
+++ /dev/null
@@ -1,30 +0,0 @@
-apiVersion: v1
-kind: Pod
-metadata:
- name: "collabora-code-{{ item.key }}"
-spec:
- containers:
- - name: collabora-code
- image: "collabora/code{% if 'custom_image' in item.value %}/{{ item.key }}{% endif %}:{{ item.value.version }}"
- resources:
- limits:
- memory: "4Gi"
- env:
- - name: "DONT_GEN_SSL_CERT"
- value: "1"
- - name: "extra_params"
- value: "--o:ssl.enable=false --o:ssl.termination=true"
- volumeMounts:
- - name: config
- mountPath: /etc/loolwsd/loolwsd.xml
- subPath: loolwsd.xml
- readOnly: true
- ports:
- - containerPort: 9980
- hostPort: {{ item.value.port }}
- hostIP: 127.0.0.1
- volumes:
- - name: config
- hostPath:
- path: "{{ collabora_code_base_path }}/{{ item.key }}/config/"
- type: Directory