diff --git a/kubernetes/solr.yaml b/kubernetes/solr.yaml index 0deef8aca6..7fe899d72d 100644 --- a/kubernetes/solr.yaml +++ b/kubernetes/solr.yaml @@ -15,6 +15,16 @@ spec: labels: app: solr spec: + initContainers: + - name: fix-permissions + image: busybox + command: + - "sh" + - "-c" + - "chown -R 8983:8983 /var/solr" + volumeMounts: + - name: solr-data + mountPath: /var/solr containers: - name: solr image: solr:9