Kubernetes中的配置缺陷
Configuration Defects in Kubernetes
AI总结:
本文研究Kubernetes配置缺陷,通过分析719个缺陷,发现15类缺陷,并开发linter检测两种严重缺陷,揭示26个新缺陷。
摘要:
Kubernetes是一种促进软件快速部署的工具。不幸的是,配置Kubernetes容易出错。配置缺陷并不罕见,可能导致严重后果。本文报告了一项关于Kubernetes配置缺陷的实证研究,旨在帮助从业者检测和防止这些缺陷。我们研究了从2260个Kubernetes配置脚本中提取的719个缺陷,使用定性分析,我们确定了15类缺陷。我们发现8种公开的静态分析工具能够检测8类缺陷。我们发现这些工具在数据字段相关的缺陷上具有最高的精度和召回率。我们开发了一个linter来检测两种导致严重后果的缺陷类别,这些缺陷没有被研究的工具检测到。我们的linter揭示了26个此前未知的缺陷,已被从业者确认,其中19个已经修复。本文最后提供了关于如何利用缺陷检测和修复技术用于Kubernetes配置脚本的建议。本文使用的数据集和源代码已在网上公开。
英文摘要:
Kubernetes is a tool that facilitates rapid deployment of software. Unfortunately, configuring Kubernetes is prone to errors. Configuration defects are not uncommon and can result in serious consequences. This paper reports an empirical study about configuration defects in Kubernetes with the goal of helping practitioners detect and prevent these defects. We study 719 defects that we extract from 2,260 Kubernetes configuration scripts using open source repositories. Using qualitative analysis, we identify 15 categories of defects. We find 8 publicly available static analysis tools to be capable of detecting 8 of the 15 defect categories. We find that the highest precision and recall of those tools are for defects related to data fields. We develop a linter to detect two categories of defects that cause serious consequences, which none of the studied tools are able to detect. Our linter revealed 26 previously-unknown defects that have been confirmed by practitioners, 19 of which have already been fixed. We conclude our paper by providing recommendations on how defect detection and repair techniques can be used for Kubernetes configuration scripts. The datasets and source code used for the paper are publicly available online.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。