Skip to content

permission denied on PV files in TESK tasks #113

Open

Description

@xhejtman

Hi,

in k8s, privileges are not managed in the same way as in openshift and if a pod needs to access files on PV, additional setup to containers needs to be done like this:
initContainers:
- name: volume-permissions
image: busybox
imagePullPolicy: {{ .Values.mongodb.pullPolicy | quote }}
command: ["chown", "-R", "{{ .Values.mongodb.securityContext.runAsUser }}:{{ .Values.mongodb.securityContext.fsGroup }}", "{{ .Values.mongodb.mountPath }}"]
securityContext:
runAsUser: 0
volumeMounts:
- name: mongodb-data
mountPath: {{ .Values.mongodb.mountPath }}

as task containers are managed by TESK-api pod, it is something that needs to be fixed in TESK.

Otherwise, tasks are failing with e.g.:
[bwa_index] Pack FASTA... [bns_fasta2bntseq] fail to open file '/ZTTROm/hs37d5.fa.pac' : Permission denied

Activity

  1. added
    type: bug
    and removed on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions