Polaris Kubernetes Best Practices Validator by agentskillexchange/skills
npx skills add https://github.com/agentskillexchange/skills --skill 'Polaris Kubernetes Best Practices Validator'使用 Fairwinds Polaris 根据最佳实践策略验证 Kubernetes 资源配置。可作为 CI/CD 的 CLI 工具运行,也可作为集群范围审计的仪表板,或作为准入控制的验证性 Webhook。
Polaris Kubernetes 最佳实践验证器技能使用 Fairwinds Polaris,这是一个开源策略引擎,用于验证和修复 Kubernetes 资源配置。Polaris 内置了超过 30 条策略,涵盖安全性、可靠性和效率问题,并支持通过 JSON Schema 定义自定义策略。
Polaris 以三种模式运行。作为命令行工具,它可以在 CI/CD 期间扫描本地 YAML 文件和 Helm 图表,在配置错误合并到主分支之前捕获它们。作为仪表板,它提供集群范围的审计,并对每个工作负载进行评分概览,突出显示哪些部署、有状态集和作业违反了哪些策略。作为验证性(或变更性)Webhook,它会拦截 kubectl apply 请求,并实时拒绝或自动修复未能通过危险级别检查的资源。
内置检查涵盖关键的 Kubernetes 运维规范:容器以 root 身份运行、缺少资源请求和限制、启用了权限提升、访问主机网络或 PID 命名空间、缺少就绪性和存活探针、拉取策略未设置为 Always 等。每个检查都有可配置的严重级别(忽略、警告、危险),并且可以通过注解或中央配置文件针对每个命名空间或每个控制器进行自定义或覆盖。
CLI 工具可以生成 JSON、YAML、美观打印的表格或仅包含分数的输出格式。退出代码反映了审计结果,使得在通过所有危险级别检查后才能进行拉取请求或部署变得容易。Helm 图表扫描的工作原理是在本地渲染模板并验证生成的清单,从而捕获仅在特定值覆盖时才会出现的问题。
Polaris 使用 Go 语言编写,采用 Apache 2.0 许可证授权,由 Fairwinds 维护,在 GitHub 上拥有超过 3,200 颗星。它与更广泛的 Fairwinds 生态系统集成,包括 Goldilocks(资源规格建议)、Pluto(已弃用 API 检测)和 Nova(Helm 图表更新检查)。对于管理 Kubernetes 集群的团队来说,此技能通过编程方式强制执行配置标准,而不是依赖手动审查。
npx skills add agentskillexchange/skills --skill polaris-kubernetes-best-practices-validator
npx skills add agentskillexchange/skills --skill polaris-kubernetes-best-practices-validator -a claude-code
npx skills add agentskillexchange/skills --skill polaris-kubernetes-best-practices-validator -a cursor
npx skills add agentskillexchange/skills --skill polaris-kubernetes-best-practices-validator -a codex
clawhub install polaris-kubernetes-best-practices-validator
每周安装次数
–
代码仓库
GitHub 星标数
1
首次出现时间
–
安全审计
Validate Kubernetes resource configurations against best practice policies using Fairwinds Polaris. Runs as a CLI for CI/CD, a dashboard for cluster-wide audits, or a validating webhook for admission control.
The Polaris Kubernetes Best Practices Validator skill uses Fairwinds Polaris, an open-source policy engine that validates and remediates Kubernetes resource configurations. Polaris ships with over 30 built-in policies covering security, reliability, and efficiency concerns, plus support for custom policies defined in JSON Schema.
Polaris operates in three modes. As a command-line tool, it scans local YAML files and Helm charts during CI/CD, catching misconfigurations before they merge into the main branch. As a dashboard, it provides a cluster-wide audit with a scored overview of every workload, highlighting which deployments, statefulsets, and jobs violate which policies. As a validating (or mutating) webhook, it intercepts kubectl apply requests and rejects or automatically fixes resources that fail danger-level checks in real time.
Built-in checks cover critical Kubernetes hygiene: containers running as root, missing resource requests and limits, privilege escalation enabled, host network or PID namespace access, missing readiness and liveness probes, pull policy not set to Always, and many more. Each check has a configurable severity level (ignore, warning, danger) and can be customized or overridden per-namespace or per-controller via annotations or a central configuration file.
The CLI produces output in JSON, YAML, pretty-printed table, or score-only formats. Exit codes reflect the audit result, making it easy to gate pull requests or deployments on passing all danger-level checks. Helm chart scanning works by rendering templates locally and validating the resulting manifests, which catches issues that only appear with specific values overrides.
Polaris is written in Go, licensed under Apache 2.0, and maintained by Fairwinds with over 3,200 GitHub stars. It integrates with the broader Fairwinds ecosystem including Goldilocks (right-sizing recommendations), Pluto (deprecated API detection), and Nova (Helm chart update checking). For teams managing Kubernetes clusters, this skill enforces configuration standards programmatically rather than relying on manual review.
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
npx skills add agentskillexchange/skills --skill polaris-kubernetes-best-practices-validator
npx skills add agentskillexchange/skills --skill polaris-kubernetes-best-practices-validator -a claude-code
npx skills add agentskillexchange/skills --skill polaris-kubernetes-best-practices-validator -a cursor
npx skills add agentskillexchange/skills --skill polaris-kubernetes-best-practices-validator -a codex
clawhub install polaris-kubernetes-best-practices-validator
Weekly Installs
–
Repository
GitHub Stars
1
First Seen
–
Security Audits
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
114,200 周安装