Skip to content

Commit 6914ad4

Browse files
committed
chore(filer): add pod security context
1 parent 53968f9 commit 6914ad4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rootfs/api/filer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def get_server(self):
5454
"app_type": "filer", "replicas": 1, "deploy_timeout": 120, "volumes": [k8s_volume],
5555
"volume_mounts": [{"mountPath": self.path, "name": self.volume.name}],
5656
"restart_policy": "Never", "image_pull_policy": settings.DRYCC_FILER_IMAGE_PULL_POLICY,
57+
"pod_security_context": {"fsGroup": 1001, "runAsGroup": 1001, "runAsUser": 1001},
5758
})
5859
address = self.scheduler.pod.get(self.app_id, pod_name).json()["status"]["podIP"]
5960
return {"address": address, "username": username, "password": password}

0 commit comments

Comments
 (0)