From dcea534102b01e56bf0ae04f8592b3522c639c9d Mon Sep 17 00:00:00 2001 From: Steve McMaster Date: Mon, 22 Jul 2024 00:10:01 -0400 Subject: [PATCH] Run sidecar as root --- base.tf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base.tf.j2 b/base.tf.j2 index 235b5f4..116c348 100644 --- a/base.tf.j2 +++ b/base.tf.j2 @@ -494,6 +494,10 @@ resource "kubernetes_deployment" "main" { command = ["sleep", "604800"] image_pull_policy = "{{ image_pull_policy }}" + security_context { + run_as_user = "0" + } + env { name = "TERM" value = "xterm"