automated opensearch permissions

This commit is contained in:
dhaval055
2023-10-13 16:51:21 +00:00
parent 04c2ed80a0
commit 223e0147a6
2 changed files with 12 additions and 4 deletions
@@ -64,6 +64,13 @@ spec:
# fsGroup: 1000 # GID
# nodeSelector:
# node: worker1
initContainers:
- name: volume-permissions
image: busybox
command: ["sh", "-c", "chown -R 1000:1000 /usr/share/opensearch/data"]
volumeMounts:
- name: opensearch-claim0
mountPath: /usr/share/opensearch/data
containers:
- env:
- name: OPENSEARCH_JAVA_OPTS