Skip to content

Commit edc00b6

Browse files
author
Alan Nix
committed
feat: added security context placeholder
1 parent 916868b commit edc00b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lacework_cluster.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ resource "kubernetes_deployment" "lacework_k8s_collector" {
143143
}
144144
}
145145

146+
security_context {
147+
privileged = false
148+
run_as_non_root = true
149+
run_as_user = 5000 #TODO update to official UID
150+
read_only_root_filesystem = true
151+
allow_privilege_escalation = false
152+
}
153+
146154
volume_mount {
147155
name = "cfgmap"
148156
mount_path = "/config"

0 commit comments

Comments
 (0)