diff --git a/pkg/render/logstorage.go b/pkg/render/logstorage.go index 2833bb13f..b1ebceb03 100644 --- a/pkg/render/logstorage.go +++ b/pkg/render/logstorage.go @@ -359,7 +359,7 @@ func (es *elasticsearchComponent) podTemplate() corev1.PodTemplateSpec { }, } - sc := securitycontext.NewRootContext(false) + sc := securitycontext.NewNonRootContext() // Set the user and group to be the default elasticsearch ID sc.RunAsUser = ptr.Int64ToPtr(1000) sc.RunAsGroup = ptr.Int64ToPtr(1000)