From 67036d74265a233429bd7500ec51836416d28b5d Mon Sep 17 00:00:00 2001 From: viktorbarzin Date: Sun, 7 Mar 2021 00:54:54 +0000 Subject: [PATCH] hackmd mount data volume as hackmd user id to make writes work --- modules/kubernetes/hackmd/main.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/kubernetes/hackmd/main.tf b/modules/kubernetes/hackmd/main.tf index ebc8489e..5ce3f4e6 100644 --- a/modules/kubernetes/hackmd/main.tf +++ b/modules/kubernetes/hackmd/main.tf @@ -99,6 +99,9 @@ resource "kubernetes_deployment" "hackmd" { protocol = "TCP" } } + security_context { + fs_group = "1500" + } volume { name = "data" iscsi {