diff --git a/opensearch-operator/pkg/builders/cluster.go b/opensearch-operator/pkg/builders/cluster.go index 760a498c..60938e9f 100644 --- a/opensearch-operator/pkg/builders/cluster.go +++ b/opensearch-operator/pkg/builders/cluster.go @@ -436,7 +436,8 @@ func NewSTSForNodePool( cp -a /usr/share/opensearch/config/opensearch.keystore /tmp/keystore/ `, }, - VolumeMounts: initContainerVolumeMounts, + VolumeMounts: initContainerVolumeMounts, + SecurityContext: securityContext, } initContainers = append(initContainers, keystoreInitContainer)