arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.10346cs.SE
收藏

使用非特权 Kubernetes runner 在自定义资源上测试 GitHub 项目

Testing GitHub projects on custom resources using unprivileged Kubernetes runners

Igor Sfiligoi, Daniel McDonald, Rob Knight, Frank Würthwein

AI总结:

针对现有基于 Kubernetes 的 GitHub Actions Runner 需要 cluster-admin 权限的问题,提出一种完全非特权的自定义设置方案,并在配备 GPU 的集群上验证了其自动部署和测试的可行性。

摘要:

GitHub 是一个流行的软件项目托管仓库,这既得益于其易用性,也得益于其与测试环境的无缝集成。原生 GitHub Actions 使软件开发者能够轻松验证新提交,并确信新代码不会引入重大 bug。免费提供的测试环境仅限于少数几种流行配置,但可以通过自定义 Action Runner 进行扩展。我们的团队拥有一个配备 GPU 加速器的 Kubernetes 集群,因此我们探索了在其中自动部署提供 GPU 的 runner 的可行性。然而,所有现有的基于 Kubernetes 的设置都需要 cluster-admin 级别权限。为了解决这个问题,我们开发了一种简单的自定义设置,以完全非特权的方式运行。在本文中,我们提供了该设置的概述描述,以及在 Prototype National Research Platform 系统上的两个 Knight 实验室项目背景下使用它的经验。

英文摘要:

GitHub is a popular repository for hosting software projects, both due to ease of use and the seamless integration with its testing environment. Native GitHub Actions make it easy for software developers to validate new commits and have confidence that new code does not introduce major bugs. The freely available test environments are limited to only a few popular setups but can be extended with custom Action Runners. Our team had access to a Kubernetes cluster with GPU accelerators, so we explored the feasibility of automatically deploying GPU-providing runners there. All available Kubernetes-based setups, however, require cluster-admin level privileges. To address this problem, we developed a simple custom setup that operates in a completely unprivileged manner. In this paper we provide a summary description of the setup and our experience using it in the context of two Knight lab projects on the Prototype National Research Platform system.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑