k8s-manifest-generator
產生 Kubernetes 清單
建立 Kubernetes 清單需要了解許多欄位和最佳實務。此技能提供針對 Deployments、Services、ConfigMaps 和 Secrets 的引導式範本和以安全性為主的範例。
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
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ûrThis 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.
Facteurs de risque
⚡ Contient des scripts (1)
🌐 Accès réseau (1)
Score de qualité
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 映像標籤
- 省略健康探測和安全上下文設定