update loki securityContext
@@ -186,6 +186,8 @@ func (r *LogSystemReconcilerTask) ReconcilePLGMonolithicLoki() error {
Spec: corev1alpha1.ComponentSpec{
Annotations: map[string]string{
"sidecar.istio.io/inject": "false",
+ "core.kalm.dev/podExt/securityContext/runAsGroup": "0",
+ "core.kalm.dev/podExt/securityContext/runAsUser": "0",
},
Image: lokiImage,
WorkloadType: corev1alpha1.WorkloadTypeStatefulSet,
@@ -410,8 +412,6 @@ func (r *LogSystemReconcilerTask) ReconcilePLGMonolithicPromtail() error {
Spec: corev1alpha1.ComponentSpec{
Annotations: map[string]string{
"sidecar.istio.io/inject": "false",
- "core.kalm.dev/podExt/securityContext/runAsGroup": "0",
- "core.kalm.dev/podExt/securityContext/runAsUser": "0",
},
Image: promtailImage,
WorkloadType: corev1alpha1.WorkloadTypeDaemonSet,
