Skip to content

Commit

Permalink
update loki securityContext
Browse files Browse the repository at this point in the history
  • Loading branch information
davidqhr committed Aug 25, 2020
1 parent 008182f commit 0988e87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controller/controllers/logsystem_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ func (r *LogSystemReconcilerTask) ReconcilePLGMonolithicLoki() error {
},
Spec: corev1alpha1.ComponentSpec{
Annotations: map[string]string{
"sidecar.istio.io/inject": "false",
"sidecar.istio.io/inject": "false",
"core.kalm.dev/podExt/securityContext/runAsGroup": "0",
"core.kalm.dev/podExt/securityContext/runAsUser": "0",
},
Image: lokiImage,
WorkloadType: corev1alpha1.WorkloadTypeStatefulSet,
Expand Down Expand Up @@ -409,9 +411,7 @@ 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",
"sidecar.istio.io/inject": "false",
},
Image: promtailImage,
WorkloadType: corev1alpha1.WorkloadTypeDaemonSet,
Expand Down

0 comments on commit 0988e87

Please sign in to comment.