Skip to content

Permissions problem with pvc block device #523

@necipakca

Description

@necipakca

When I tried to start solrcloud on our k8s system with Huawei CSI pvc. Pod can not start due to file system permissions problem. It can not write files to the data volume.

I can solve the issue with initContainer ;

  initContainers:
    - name: busybox
      image: busybox:1.28.0-glibc
      command:
        - "/bin/sh"
        - "-c"
        - "mkdir -p /var/solr/data && chown -R 8983:8983 /var/solr/data && chmod -R 770 /var/solr/"
      volumeMounts:
        - mountPath: /var/solr/data
          name: data
      securityContext:
        runAsNonRoot: false
        runAsUser: 0
        runAsGroup: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions