From a6f89b7835738c68cb597e76008b43839a5221be Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 25 Nov 2022 21:57:15 +0100 Subject: extend pix.elevate.at image paths --- roles/apps/pigallery2/templates/pod-spec.yml.j2 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'roles/apps/pigallery2/templates/pod-spec.yml.j2') diff --git a/roles/apps/pigallery2/templates/pod-spec.yml.j2 b/roles/apps/pigallery2/templates/pod-spec.yml.j2 index e0921b3b..c47beb6f 100644 --- a/roles/apps/pigallery2/templates/pod-spec.yml.j2 +++ b/roles/apps/pigallery2/templates/pod-spec.yml.j2 @@ -16,9 +16,11 @@ containers: mountPath: /app/data/db - name: tmp mountPath: /app/data/tmp - - name: images - mountPath: /app/data/images +{% for mountpoint, images_path in item.value.images_paths.items() %} + - name: images-{{ mountpoint }} + mountPath: /app/data/images/{{ mountpoint }} readOnly: true +{% endfor %} env: - name: PORT value: "{{ item.value.port }}" @@ -41,7 +43,9 @@ volumes: hostPath: path: "{{ pigallery2_base_path }}/{{ item.key }}/tmp/" type: Directory -- name: images +{% for mountpoint, images_path in item.value.images_paths.items() %} +- name: images-{{ mountpoint }} hostPath: - path: "{{ item.value.images_path }}" + path: "{{ images_path }}" type: Directory +{% endfor %} -- cgit v1.2.3