Nomad to Kubernetes Converter
Convert a Nomad HCL job subset into Kubernetes manifests in your browser
About
A deterministic client-side converter for a practical Nomad HCL subset. Docker tasks, resources, ports, environment variables, and services map to Kubernetes YAML; Vault, Consul, and template blocks are clearly reported as unsupported.
Examples
Resource and env mapping
convertNomadToKubernetes(resources { cpu = 500 memory = 256 } + env { APP_ENV = "production" }){ yaml contains 'cpu: "500m"', 'memory: "256Mi"', 'name: APP_ENV' + 'value: "production"' }CPU rounds to millicores, memory to Mi, and env keys sort into name/value entries.
Port and service emission
convertNomadToKubernetes(network port "http" static 8080 + config ports ["http"]){ yaml contains "containerPort: 8080", "port: 8080", "targetPort: http" }Matched network ports become container ports and deterministic Service port entries.
About this tool
Nomad HCL to Kubernetes converter translates jobs with convertNomadToKubernetes(source): job and group names become a Deployment (replicas from count, default 1), each docker task becomes a container with its image (default busybox:latest), and non-docker drivers warn but still emit as containers.
Resources map directly to limits: cpu becomes Math.round millicores as cpu: "500m" and memory becomes mebibytes as memory: "256Mi", while env blocks sort keys into container env entries and config ports resolve against network port static/to/host values into containerPorts.
Unsupported Nomad concepts never convert silently: vault, consul, and template blocks each push an Unsupported Nomad x block was not converted warning, inputs without a job block return No Nomad job block found, and mapped ports emit a deterministic Service with port plus targetPort entries.
How to use this tool
Paste Nomad HCL
Provide job/group/task blocks with config image, resources cpu/memory, env, and network port stanzas.
Check warnings
Read vault/consul/template notices, driver fallbacks, and the missing-job message before applying output.
Apply the YAML
Copy the Deployment plus Service documents (--- separated) straight into kubectl.
Use cases
Migrating Nomad workloads
Generate starter Deployments and Services from existing Nomad job files.
Estimating resource limits
Preview millicore/mebibyte limits derived from Nomad cpu and memory values.
Spotting untranslatable blocks
Use vault/consul/template warnings as a migration checklist for manual rewrites.
Common mistakes
Mistake:Reading cpu 500 as half a core.
Fix:Nomad MHz maps to Kubernetes millicores one-to-one here: 500 becomes 500m, not 0.5.
Mistake:Expecting vault secrets to convert.
Fix:Vault, consul, and template blocks are skipped with warnings — rewire secrets with native Kubernetes mechanisms.
Frequently asked questions
What does this tool do?
It converts Nomad HCL with convertNomadToKubernetes into Deployment plus Service YAML: cpu to millicores (500m), memory to Mi (256Mi), env to container entries, and network ports to containerPort and Service port/targetPort rows.
What happens to vault, consul, and template blocks?
Each emits an Unsupported Nomad x block was not converted warning and is skipped, and non-docker drivers warn while still emitting a container; missing job blocks return No Nomad job block found.
Is my HCL uploaded or stored?
No. HCL block parsing and YAML emission run fully client-side.
Why did memory or CPU values change, or no Service appear?
Values round to whole millicores and mebibytes with a minimum of 1, and a Service emits only when container ports or a service stanza exist — otherwise only the Deployment is produced.
Related guides
References & standards
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
AI Function Calling Schema Generator
Generate function calling JSON schemas from TypeScript interfaces
Algorithm Arena & Data Structure Visualizer
Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.
Ansible Playbook Generator
Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML