☸️

Kubernetes Manifest Generator

Generate Deployment, Service, Ingress, HPA, PDB and NetworkPolicy YAML with presets and validation.
Manifests 📂 Developer 👤 ToolCMS 🏷️ v1.4.0 ⚙️ clipboard
场景基线 一次写入副本、资源、HPA、PDB、网络策略与安全项

工作负载 名称、镜像与端口

服务与入口 Service、Ingress 与发布策略

资源与探针 限额、健康检查与环境变量

生产基线 账户、网络与高可用

生产基线只改参数,不会替你决定密钥后端;ServiceAccount 默认关闭自动挂载令牌;最小 RBAC 只授予 ConfigMap 只读权限,NetworkPolicy 默认只限制入站。

配置自检通过

生成结果 可直接提交到集群


Secret 仅在本机浏览器内编码;上线前请接入 Sealed Secrets、External Secrets 或云厂商密钥管理。

结构自检 生成后逐项核对

How to Use

📖 What it does

Before a Kubernetes rollout, the slow part is rarely the image. It is stitching Deployment, Service, Ingress and autoscaling into a YAML file that survives review. Fields are many, indentation is strict, and copying an old template often brings the wrong namespace or port.

This tool collects the common workload fields into three cards on the left. It builds a multi-document YAML from your image, ports, resource budget and hostname, then reads it back with js-yaml on the right to confirm document count and structure.

Use it as a skeleton, not as a replacement for Helm or Kustomize. After generation, add ConfigMap externalisation, secret management and the GitOps flow your team already uses.

✨ Features

  • Three development, staging and production baselines that set replicas, resources, HPA/PDB, TLS, network policy, RBAC, namespace governance and hardening together.
  • Generate up to fourteen manifest kinds: Namespace, ServiceAccount, Role, RoleBinding, ResourceQuota, LimitRange, ConfigMap, Secret, Deployment, Service, Ingress, HPA, PDB and NetworkPolicy.
  • Least-privilege RBAC grants only get/list/watch on configmaps in the same namespace and requires a ServiceAccount.
  • Validate DNS labels, ports, CPU/memory quantities, HPA targets, PDB ratios, startup probe and preStop timing, with field-level errors.
  • Harden containers with non-root, read-only root, drop ALL, RuntimeDefault seccomp and no token automount; add topology spread and graceful shutdown.
  • Namespace governance derives a release budget from HPA/replicas plus maxSurge and emits ResourceQuota/LimitRange; Namespace can carry PSS restricted labels; production defaults to 13 documents.

🚀 How to use it

  1. Pick a development, staging or production baseline, then confirm name, namespace, replicas, image and port in Workload.
  2. In Service and Ingress, choose the Service type, rollout strategy, host, path and TLS; enable HPA and PDB as needed.
  3. In Resources and Probes, set CPU and memory, health checks, HPA metric and target; fill environment variables, ConfigMap and Secret.
  4. In Production Baseline, decide ServiceAccount, NetworkPolicy, zone spread and hardening, then click Generate YAML.
  5. Review the document tabs, copy all or the current document, and run a dry-run before kubectl apply.

⚠️ Before you rely on it

  • Secret Base64 is encoding, not encryption. Use Sealed Secrets, External Secrets or a cloud key manager in production.
  • If Generate Namespace is off, the target namespace must already exist, or apply will fail.
  • HPA depends on metrics-server. Without metrics, replicas will not follow the CPU or memory target.
  • NetworkPolicy only restricts ingress, allowing same-namespace pods and the named Ingress controller namespace; design egress separately.
  • Namespace governance budgets HPA/replicas plus maxSurge before aggregating per-Pod requests/limits; PSS labels are only emitted with a Namespace document.

A dry run is not optional. Apply the generated YAML to a disposable namespace first, check that the Service endpoints resolve, and confirm that the Ingress controller accepts the class name. If the cluster uses a private registry, add the imagePullSecret before rollout. If the application writes to disk, the read-only root filesystem switch must stay off until an emptyDir or persistent volume is mounted. Keep the generated file in version control so the next change is a diff, not a fresh copy. Review the resource requests against the namespace quota; a manifest that is valid but over quota will still be rejected.

Related

⏫︎