diff options
Diffstat (limited to 'templates/default/kubernetes/flumotion-worker-deploy.yml.j2')
-rw-r--r-- | templates/default/kubernetes/flumotion-worker-deploy.yml.j2 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 index 7079c67..0f8ab23 100644 --- a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 +++ b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 @@ -28,6 +28,19 @@ spec: securityContext: runAsUser: 998 fsGroup: 998 +%% if 'record' in worker.flags + initContainers: +%% for record_name in worker.flags.record + - name: prepare-record-{{ record_name }} + image: busybox + command: ['sh', '-c', 'chown 998:998 /srv/record && chmod 0755 /srv/record'] + securityContext: + runAsUser: 0 + volumeMounts: + - name: record-{{ record_name }} + mountPath: /srv/record +%% endfor +%% endif containers: %% for subname, sub in worker.subs.items() - name: {{ subname }} @@ -104,6 +117,7 @@ spec: hostPath: type: Directory path: /usr/lib/ + readOnly: true %% endif %% endif %% if 'record' in worker.flags |