Skip to content
Back to skills

Neo Docker To K8s Manifests

ASecurity

Automatically generate optimized Kubernetes deployment manifests from Dockerfile and docker-compose configurations with proper resource limits and health checks.

  • 7 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 7, 2026
devopsjavascriptjavabashdockerkubernetessecurity

Works with

  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned June 7, 2026

npx -y skills add modbender/skill-library-mcp --skill neo-docker-to-k8s-manifests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Neo Docker To K8s Manifests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Neo Docker To K8s Manifests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-neo-docker-to-k8s-manifests/badge)](https://www.skillsdirectory.com/skills/modbender-neo-docker-to-k8s-manifests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docker-to-k8s-manifests
description: Automatically generate optimized Kubernetes deployment manifests from Dockerfile and docker-compose configurations with proper resource limits and health checks.
version: 1.0.0
triggers:
  - "Convert my Dockerfile to Kubernetes manifests"
  - "Generate k8s deployment from docker-compose.yml"
  - "Create Kubernetes resources for this Docker application"
  - "Optimize my Docker setup for Kubernetes deployment"
  - "Add health checks and resource limits to my k8s deployment"
  - "Migrate Docker Compose to Kubernetes manifests"
---

# docker-to-k8s-manifests

Converts Dockerfile and docker-compose.yml files into production-ready Kubernetes deployment manifests.

## Usage

### CLI

```bash
# From a Dockerfile
docker-to-k8s --dockerfile ./Dockerfile --output ./k8s/

# From a docker-compose.yml
docker-to-k8s --compose ./docker-compose.yml --output ./k8s/

# With custom app name
docker-to-k8s --dockerfile ./Dockerfile --name my-app --output ./k8s/
```

### As a library

```javascript
const { DockerfileParser } = require('./scripts/dockerfile-parser');
const { ComposeParser } = require('./scripts/compose-parser');
const { K8sGenerator } = require('./scripts/k8s-generator');

// Parse Dockerfile
const parser = new DockerfileParser();
const config = parser.parseFile('./Dockerfile');

// Generate K8s manifests
const generator = new K8sGenerator();
const manifests = generator.generate(config, { name: 'my-app' });
```

## Features

- Parses Dockerfile instructions and extracts metadata
- Parses docker-compose.yml multi-service configurations
- Generates Deployment, Service, and Ingress manifests
- Estimates resource limits based on application type
- Configures liveness, readiness, and startup probes
- Validates output against Kubernetes schemas
- Applies security best practices (non-root, read-only FS, dropped capabilities)

## Output

Generates the following Kubernetes resources:

- **Deployment** — with resource limits, probes, security context
- **Service** — ClusterIP with correct port mappings
- **Ingress** — optional, for HTTP services
- **ConfigMap** — for environment variables
- **PersistentVolumeClaim** — for volume mounts

Files in this skill

  • README.md1.2 KB
  • SKILL.md2.2 KB
  • assets/docker-examples/Dockerfile.java559 B
  • assets/docker-examples/docker-compose.yml1.1 KB
  • assets/schemas/configmap-schema.json661 B
  • assets/schemas/deployment-schema.json2.4 KB
  • assets/schemas/ingress-schema.json1.5 KB
  • assets/schemas/persistentvolumeclaim-schema.json1.1 KB
  • assets/schemas/service-schema.json1.2 KB
  • package-lock.json3.2 KB
  • package.json590 B
  • references/k8s-best-practices.md2.3 KB
  • references/resource-heuristics.json1.9 KB
  • scripts/compose-parser.js8 KB
  • scripts/dockerfile-parser.js8.8 KB
  • scripts/health-checks.js6 KB
  • scripts/k8s-generator.js8.8 KB
  • scripts/manifest-validator.js3.5 KB
  • scripts/resource-estimator.js4.3 KB
  • tests/run-tests.js20.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…