---
title: "Kubernetes マニフェストを生成する（エージェント用スキル） | Orchestor"
description: "推奨事項とセキュリティ基準に沿って、Deployment、Service、ConfigMap、Secret の本番向け Kubernetes マニフェストを作成する。Kubernetes YAML の生成、K8s リソースの作成、本番用設定の実装に使う。wshobson/agents が公開している「Kubernetes マニフェストを生成する」の使い方を確認できます。"
canonical_url: "https://www.orchestor.io/ja/skills/wshobson/agents/k8s-manifest-generator"
markdown_url: "https://www.orchestor.io/ja/skills/wshobson/agents/k8s-manifest-generator.md"
---

[c96b5f6](https://github.com/wshobson/agents/commit/c96b5f6552dba32e4492307493ee613581430715)[原文を開く](https://github.com/wshobson/agents/blob/c96b5f6552dba32e4492307493ee613581430715/plugins/kubernetes-operations/skills/k8s-manifest-generator/SKILL.md)

wshobson2026/11/24

原文 (選択中)

未翻訳

プレビュー (選択中)

77 行（空行を除く 54 行） · 3.02 KB原文

```yaml
name: k8s-manifest-generator
description: Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.
```

# Kubernetes Manifest Generator

Step-by-step guidance for creating production-ready Kubernetes manifests including Deployments, Services, ConfigMaps, Secrets, and PersistentVolumeClaims.

## Purpose

This skill provides comprehensive guidance for generating well-structured, secure, and production-ready Kubernetes manifests following cloud-native best practices and Kubernetes conventions.

## When to Use This Skill

Use this skill when you need to:

* Create new Kubernetes Deployment manifests
* Define Service resources for network connectivity
* Generate ConfigMap and Secret resources for configuration management
* Create PersistentVolumeClaim manifests for stateful workloads
* Follow Kubernetes best practices and naming conventions
* Implement resource limits, health checks, and security contexts
* Design manifests for multi-environment deployments

## Detailed patterns and worked examples

Detailed pattern documentation lives in details.md. Read that file when the navigation tier above is insufficient.

## Best Practices Summary

1. **Always set resource requests and limits** \- Prevents resource starvation
2. **Implement health checks** \- Ensures Kubernetes can manage your application
3. **Use specific image tags** \- Avoid unpredictable deployments
4. **Apply security contexts** \- Run as non-root, drop capabilities
5. **Use ConfigMaps and Secrets** \- Separate config from code
6. **Label everything** \- Enables filtering and organization
7. **Follow naming conventions** \- Use standard Kubernetes labels
8. **Validate before applying** \- Use dry-run and validation tools
9. **Version your manifests** \- Keep in Git with version control
10. **Document with annotations** \- Add context for other developers

## Troubleshooting

**Pods not starting:**

* Check image pull errors: `kubectl describe pod <pod-name>`
* Verify resource availability: `kubectl get nodes`
* Check events: `kubectl get events --sort-by='.lastTimestamp'`

**Service not accessible:**

* Verify selector matches pod labels: `kubectl get endpoints <service-name>`
* Check service type and port configuration
* Test from within cluster: `kubectl run debug --rm -it --image=busybox -- sh`

**ConfigMap/Secret not loading:**

* Verify names match in Deployment
* Check namespace
* Ensure resources exist: `kubectl get configmap,secret`

## Next Steps

After creating manifests:

1. Store in Git repository
2. Set up CI/CD pipeline for deployment
3. Consider using Helm or Kustomize for templating
4. Implement GitOps with ArgoCD or Flux
5. Add monitoring and observability

## Related Skills

* `helm-chart-scaffolding` \- For templating and packaging
* `gitops-workflow` \- For automated deployments
* `k8s-security-policies` \- For advanced security configurations

## Structured data

```json
[
  [
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": "Orchestor",
      "url": "https://www.orchestor.io",
      "sameAs": [
        "https://orchestor.io",
        "https://www.orchestor.io",
        "https://docs.orchestor.io"
      ],
      "@id": "https://www.orchestor.io/#organization",
      "alternateName": [
        "オーケスター"
      ],
      "logo": "https://www.orchestor.io/images/common/ogp/orchestor-ogp.png",
      "parentOrganization": {
        "@type": "Organization",
        "name": "ドットメディア株式会社",
        "url": "https://www.dotmedia.co.jp"
      }
    },
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "url": "https://www.orchestor.io",
      "name": "Orchestor",
      "description": "Orchestor で画像・動画・音声を作り、参照素材を Remix できます。",
      "@id": "https://www.orchestor.io/#website",
      "alternateName": [
        "オーケスター"
      ],
      "inLanguage": "ja",
      "publisher": {
        "@id": "https://www.orchestor.io/#organization"
      }
    }
  ],
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://www.orchestor.io/skills/wshobson/agents/k8s-manifest-generator#breadcrumb",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Orchestor",
        "item": "https://www.orchestor.io/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "スキル",
        "item": "https://www.orchestor.io/skills"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Kubernetes マニフェストを生成する",
        "item": "https://www.orchestor.io/skills/wshobson/agents/k8s-manifest-generator"
      }
    ]
  }
]
```

---

[Documentation index](https://www.orchestor.io/llms.txt)
