Back to skills
SKILL.md
Neo Docker To K8s Manifests
ASecurityAutomatically 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
Works with
Security analysis
100/100Pro scans all 20 files and shows the line behind each finding
npx -y skills add modbender/skill-library-mcp --skill neo-docker-to-k8s-manifests --agent claude-codeAre you the author of Neo Docker To K8s Manifests?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-neo-docker-to-k8s-manifests)---
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.md
- SKILL.md
- assets/docker-examples/Dockerfile.java
- assets/docker-examples/docker-compose.yml
- assets/schemas/configmap-schema.json
- assets/schemas/deployment-schema.json
- assets/schemas/ingress-schema.json
- assets/schemas/persistentvolumeclaim-schema.json
- assets/schemas/service-schema.json
- package-lock.json
- package.json
- references/k8s-best-practices.md
- references/resource-heuristics.json
- scripts/compose-parser.js
- scripts/dockerfile-parser.js
- scripts/health-checks.js
- scripts/k8s-generator.js
- scripts/manifest-validator.js
- scripts/resource-estimator.js
- tests/run-tests.js
Attribution
Comments
Loading comments…