Skip to content

feat: add run_as_non_root=True to Kubernetes Starter template #16512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 12, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add run_as_non_root=True to Kubernetes Starter template
  • Loading branch information
Cjkjvfnby authored Feb 10, 2025
commit 65df1fac110c77a004f8af37da64216f6a16c8be
5 changes: 3 additions & 2 deletions examples/templates/kubernetes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,9 @@ resource "kubernetes_deployment" "main" {
}
spec {
security_context {
run_as_user = 1000
fs_group = 1000
run_as_user = 1000
fs_group = 1000
run_as_non_root = True
}

container {
Expand Down
Loading