Compétences k8s-manifest-generator
☸️

k8s-manifest-generator

Sûr ⚡ Contient des scripts🌐 Accès réseau

產生 Kubernetes 清單

建立 Kubernetes 清單需要了解許多欄位和最佳實務。此技能提供針對 Deployments、Services、ConfigMaps 和 Secrets 的引導式範本和以安全性為主的範例。

Prend en charge: Claude Codex Code(CC)
🥉 74 Bronze
1

Télécharger le ZIP du skill

2

Importer dans Claude

Allez dans Paramètres → Capacités → Skills → Importer un skill

3

Activez et commencez à utiliser

Tester

Utilisation de "k8s-manifest-generator". Create production manifests for a payments API using image registry/payments:2.1.0, port 8080, and external access.

Résultat attendu:

  • 具有三個副本、資源限制以及存活和就緒探測的 Deployment
  • 暴露連接埠 80 和 443 的 LoadBalancer Service
  • 連接至 Deployment 的 ConfigMap 和 Secret 參照
  • 設定為非root並已移除能力的 安全上下文

Utilisation de "k8s-manifest-generator". Create a ConfigMap with nginx configuration for a web server.

Résultat attendu:

  • 名為 web-nginx-config 的 ConfigMap,包含 nginx.conf 內容
  • 包含工作程序、日誌路徑和代理設定的 nginx.conf 範例
  • 掛載為磁碟區或暴露為環境變數的說明

Audit de sécurité

Sûr
v4 • 1/17/2026

This is a pure documentation and YAML template skill. No executable code is present. The skill provides guided templates and best practices for Kubernetes manifests. All static findings are false positives: backticks in markdown are code formatting, not command execution; embedded scripts in YAML are template examples, not executable code; cryptographic mentions are documentation references, not actual weak crypto usage.

7
Fichiers analysés
2,903
Lignes analysées
2
résultats
4
Total des audits

Facteurs de risque

Score de qualité

55
Architecture
100
Maintenabilité
85
Contenu
29
Communauté
100
Sécurité
87
Conformité aux spécifications

Ce que vous pouvez construire

標準化應用程式清單

建立具有一致安全性和資源設定的 Deployment 和 Service YAML。

引導新服務

為新 API 起草包含 ConfigMap、Secret 和基本網路的清單。

審查 YAML 品質

根據建議的探測、標籤和安全上下文設定來檢查團隊的清單。

Essayez ces prompts

基本網頁應用程式
Generate a Deployment and ClusterIP Service for app web-api using image repo/web:1.2.3, port 8080, and namespace dev.
設定和密鑰
Create manifests for app billing with a ConfigMap for settings, a Secret reference for credentials, a Deployment, and a Service.
狀態儲存
Create a Deployment and PersistentVolumeClaim for app reports with 20Gi storage and mount it at /var/lib/app.
強化生產環境
Generate production manifests with non-root security context, read-only filesystem, resource limits, and health probes for app payments.

Bonnes pratiques

  • 在請求中提供確切的映像標籤和資源限制
  • 清楚指定連接埠、通訊協定和暴露類型
  • 明確描述 ConfigMap 和 Secret 需求

Éviter

  • 要求將密鑰以純文字形式放置在清單中
  • 在生產環境部署中使用 :latest 映像標籤
  • 省略健康探測和安全上下文設定

Foire aux questions

支援哪些 Kubernetes 版本?
範本使用穩定的 API,應該適用於大多數從 1.19 版本起的目前 Kubernetes 叢集。
清單大小或複雜度有限制嗎?
沒有強制的限制,但非常大的清單可能需要手動組織成獨立的檔案。
可以與 Helm 或 Kustomize 搭配使用嗎?
可以,但您必須手動將 YAML 調整為 charts 或 overlays。
此技能是否存取或儲存我的資料?
不會,它只會在對話工作階段內提供指引和範本。
如果 kubectl 驗證失敗該怎麼辦?
使用技能中列出的 dry-run 和 lint 步驟來找出缺少的欄位或錯誤。
這與產生器工具有何不同?
它專注於最佳實務指引,而非自動化的骨架建立或叢集操作。