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.

S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho

…

Com es fa

  1. 1
    Name the app

    Enter name, namespace, image and port.

  2. 2
    Set resources

    Requests and limits.

  3. 3
    Add health checks

    Enter the health path.

  4. 4
    Choose networking

    Service type and Ingress host with TLS.

  5. 5
    Add config and scaling

    Environment and autoscaler.

  6. 6
    Apply

    Download the YAML and run kubectl apply.

Sobre aquesta eina

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.

Exemple resolt

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.

En resum

Preguntes freqüents

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.

Totalment gratisSense cost, sense registre
Els fitxers es mantenen privatsTot funciona al teu navegador
Fàcil en el teu idiomaDisponible en molts idiomes