Skip to content

Commit 0cbcd69

Browse files
Fix using initContainer
1 parent 75110f4 commit 0cbcd69

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

k8chart-dev/oxo2/templates/solr-deployment.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,16 @@ spec:
1515
securityContext:
1616
fsGroup: 1000
1717
runAsUser: 1000
18-
runAsGroup: 1000
18+
runAsGroup: 1000
19+
initContainers:
20+
- name: fix-permissions
21+
image: busybox
22+
command: ['sh', '-c', 'chown -R 1000:1000 /var/solr']
23+
securityContext:
24+
runAsUser: 0
25+
volumeMounts:
26+
- name: solr-data
27+
mountPath: /var/solr
1928
containers:
2029
- name: solr
2130
image: docker.io/library/solr:9.9.0

0 commit comments

Comments
 (0)