diff --git a/swan-cern/files/swan_config_cern.py b/swan-cern/files/swan_config_cern.py index 1dd3f92..05afbd8 100644 --- a/swan-cern/files/swan_config_cern.py +++ b/swan-cern/files/swan_config_cern.py @@ -12,6 +12,7 @@ V1ObjectMeta, V1Secret, V1SecretVolumeSource, + V1SecurityContext, V1Volume, V1VolumeMount, ) @@ -200,7 +201,8 @@ def _init_eos_containers(self, eos_secret_name): env['USER_ID'], str(swan_cull_period) ], - volume_mounts=side_container_volume_mounts + volume_mounts=side_container_volume_mounts, + security_context=V1SecurityContext(run_as_user=0) ) )