Kubernetes YAML Generator
Visually generate Kubernetes resource configuration files, supporting Deployment, Service, ConfigMap, Ingress, Secret, and preset templates.
Resource Configuration
Generated Output
Usage Guide
Features
Kubernetes (K8s) is the industry-leading container orchestration platform that declaratively describes resources through YAML. This tool visually configures common resources like Deployment, Service, ConfigMap, Ingress, and Secret, with preset templates for Nginx Deployment, Node.js Deployment + Service, Redis StatefulSet, TLS Ingress, etc. It generates standard YAML in real-time, with one-click copy or download, and deploys to the cluster via kubectl apply.
Steps
!Select a resource type; optionally choose a preset template to auto-fill the configuration. Fill in the resource name, namespace, and labels. Depending on the resource type, provide specific fields like image, replicas, ports, environment variables, and resource limits. YAML output updates in real-time. Click "Copy" to copy to clipboard or "Download" to save as a .yaml file. Finally, deploy using <code class="font-mono text-primary-500">kubectl apply -f xxx.yaml</code>.
Notes
!YAML indentation is strictly 2 spaces. After generation, validate with <code class="font-mono text-primary-500">kubectl apply --dry-run=client -f xxx.yaml</code>. Secret currently outputs in plaintext as stringData; for production, use data + base64 encoding instead. Ingress requires an Ingress Controller installed in the cluster. StatefulSet requires a Headless Service. Separate multiple resources with <code class="font-mono text-primary-500">---</code>.