Skip to content

Commit

Permalink
Update es security context to non root context
Browse files Browse the repository at this point in the history
  • Loading branch information
vara2504 committed Nov 18, 2024
1 parent 1b80ff5 commit 58b1252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/render/logstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 58b1252

Please sign in to comment.