Kubernetes Manifest Generator
Fill in a name, image and port to get ready-to-apply Kubernetes manifests: Deployment, Service, Ingress, ConfigMap and HorizontalPodAutoscaler, following current good practice.
Se ejecuta en tu navegador. Tus archivos nunca salen de tu dispositivo. Cómo comprobarlo
…
Cómo hacerlo
- 1Name the app
Enter name, namespace, image and port.
- 2Set resources
Requests and limits.
- 3Add health checks
Enter the health path.
- 4Choose networking
Service type and Ingress host with TLS.
- 5Add config and scaling
Environment and autoscaler.
- 6Apply
Download the YAML and run kubectl apply.
Sobre esta herramienta
Writing Kubernetes YAML by hand is error-prone: labels must match selectors exactly, ports must be named consistently, probes need sensible timings, and leaving out resource requests or a security context causes problems that only show up under load or in an audit. This generator builds a consistent set of manifests from a short form. The Deployment gets matching labels and selector, a named container port, readiness and liveness probes on your health path, CPU and memory requests and limits, and an optional hardened security context that runs as non-root with a read-only root filesystem, no privilege escalation and all Linux capabilities dropped. A Service, an Ingress with an ingress class and cert-manager TLS, a ConfigMap loaded through envFrom and a HorizontalPodAutoscaler on CPU can be added. Names are checked against the Kubernetes naming rules before anything is generated.
What you get
- ConfigMap with your environment variables, referenced with envFrom. - Deployment (apps/v1) using the recommended app.kubernetes.io/name label. - Service of type ClusterIP, NodePort or LoadBalancer, targeting the named port http. - Ingress (networking.k8s.io/v1) with your host, path prefix, ingress class and TLS secret from cert-manager. - HorizontalPodAutoscaler (autoscaling/v2) on average CPU utilisation. All documents are in one file separated by ---, ready for kubectl apply -f.
Probes
Readiness decides when a pod receives traffic; liveness restarts a stuck container. Both use your health path over HTTP, or a TCP check when no path is given. The liveness probe starts later so slow-starting apps are not killed during start-up.
Requests and limits
Requests are what the scheduler reserves; limits are hard ceilings. A memory limit protects the node from a leaking pod. CPU limits can cause throttling, so many teams set only a CPU request; the field can be left empty.
Security context
The hardened option matches the Pod Security Standards restricted profile. Applications that write to the filesystem need an emptyDir volume mounted where they write, such as /tmp; the official nginx image also needs its cache and run folders writable.
Names
Kubernetes object names must be lower-case letters, digits and dashes, start and end with a letter or digit and be at most 63 characters for labels. The generator checks this before writing anything.
Rolling out changes
Change the image tag, apply again and watch kubectl rollout status; if the new pods fail their readiness probe, the old ones keep serving.
Limits
This covers the common stateless web service. Databases need StatefulSets, persistent volumes and backups, which are out of scope. Review the output against your cluster's policies.
Ejemplo práctico
An app called shop with image registry.example.com/shop:1.4.2 on port 8080, 3 replicas, host shop.example.com with TLS and autoscaling to 10 replicas at 70% CPU produces five documents: ConfigMap, Deployment, Service, Ingress and HorizontalPodAutoscaler.
Datos rápidos
- Categoría: Desarrollo y datos
- Funciona en tu navegador, sin registro y sin subir nada.
- Lo que introduces se queda en tu dispositivo.
- Disponible en inglés.
- Contenido revisado por última vez:
- Fuente oficial: Kubernetes documentation: Workloads, Services, Ingress and Pod Security Standards
Preguntas frecuentes
Can I apply the output directly?
Yes, with kubectl apply -f, after checking it fits your cluster.
Does it work with any ingress controller?
Set the ingress class to match your controller, such as nginx or traefik.
Why is the security context on by default?
It follows the Pod Security Standards restricted profile, which many clusters enforce.
Does the autoscaler need anything else?
A CPU request on the container and the metrics-server in the cluster.
Are my values uploaded?
No. The YAML is generated in your browser.
Can it make StatefulSets?
No. It targets stateless web services.
