kubernetes - 搜索 Kubernetes 项目作为测试对象
问题描述
我正在写关于 Kubernetes 开发最佳实践的硕士论文,然后实现一个原型来对 Kubernetes 清单进行静态分析,以检查是否遵循了最佳实践。
现在我正在寻找“准备好生产”的项目,因此在他们已经有时间实施最佳实践的状态下,而不是在“我只想让事情现在运行”的状态下。感谢您对有趣项目的任何提示,我可以将其用作将来评估部分的测试对象。
此外,如果您阅读了我不应该错过的任何有趣的文章或科学论文,我也期待着这样的输入。
谢谢大家
有美好的一天
解决方案
Perhaps your master thesis project is already implemented by conftest - a tool which helps you write tests against structured configuration data.
For example, the following rule will prevent running containers as root
deny[msg] {
input.kind = "Deployment"
not input.spec.template.spec.securityContext.runAsNonRoot = true
msg = "Containers must not run as root"
}
Check some other kubernetes examples.
推荐阅读
- asp.net - “docker pull microsoft/aspnet”错误“没有匹配的清单......”
- flutter - 接受所有可用付款方式的订阅付款
- javascript - 使用可能的未定义变量评估多个条件语句
- stl - 为什么 vector.push_back(System::Byte) 在 VC++ 14.29 (C++/CLI) 中不再编译
- javascript - AWS Lambda 函数响应时间超过 1200 毫秒
- kotlin - 在 IntelliJ 中构建 Kotlin 程序后,如何直接从终端执行它?
- node.js - Heroku 服务器 api 调用(本地主机)不起作用
- javascript - React 应用程序的编译错误:模块构建失败(来自 ./node_modules/babel-loader/lib/index.js)
- r - 如何重复 Grubbs 检验并显示列的 p 值
- amazon-web-services - 使用 AWS Quicksight 中的差异函数从计算列中减去常数值