Skip to content
Back to skills

Docker To K8s Manifests

ASecurity

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

  • 57 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 17, 2026
devopsjavascriptjavabashdockerkubernetessecurity

Works with

  • cli

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill docker-to-k8s-manifests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docker To K8s Manifests?

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

Security grade badge for Docker To K8s Manifests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-docker-to-k8s-manifests/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-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

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.