Skip to content
Back to skills

2259 K8s Deploy Ef5dbb6d

ASecurity

Create Kubernetes deployments and services

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
devopskubernetesapidatabasebackend

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2259-k8s-deploy_ef5dbb6d --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2259 K8s Deploy Ef5dbb6d?

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

Security grade badge for 2259 K8s Deploy Ef5dbb6d
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2259-k8s-deploy-ef5dbb6d/badge)](https://www.skillsdirectory.com/skills/tools-only-2259-k8s-deploy-ef5dbb6d)

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

SKILL.md
---
name: k8s-deploy
description: Create Kubernetes deployments and services
---
# Kubernetes Deployment Creator

Generate production-ready Kubernetes manifests with best practices.

## K8s Resources Generated

1. **Deployment**: Application pods with replicas
2. **Service**: Load balancing and discovery
3. **ConfigMap**: Configuration management
4. **Secret**: Sensitive data storage
5. **Ingress**: External access routing
6. **HPA**: Horizontal pod autoscaling

## Example Deployment (Full Stack App)

```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: web-app
  namespace: production
  labels:
    app: web-app
    version: v1
spec:
  replicas: 3
  selector:
    matchLabels:
      app: web-app
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
  template:
    metadata:
      labels:
        app: web-app
        version: v1
    spec:
      containers:
      - name: web
        image: myapp:1.0.0
        ports:
        - containerPort: 8080
          name: http
        env:
        - name: DATABASE_URL
          valueFrom:
            secretKeyRef:
              name: db-credentials
              key: url
        - name: REDIS_HOST
          valueFrom:
            configMapKeyRef:
              name: app-config
              key: redis-host
        resources:
          requests:
            cpu: 100m
            memory: 128Mi
          limits:
            cpu: 500m
            memory: 512Mi
        livenessProbe:
          httpGet:
            path: /health
            port: 8080
          initialDelaySeconds: 30
          periodSeconds: 10
        readinessProbe:
          httpGet:
            path: /ready
            port: 8080
          initialDelaySeconds: 5
          periodSeconds: 5
        volumeMounts:
        - name: config
          mountPath: /app/config
          readOnly: true
      volumes:
      - name: config
        configMap:
          name: app-config
---
apiVersion: v1
kind: Service
metadata:
  name: web-app-service
  namespace: production
spec:
  type: ClusterIP
  selector:
    app: web-app
  ports:
  - port: 80
    targetPort: 8080
    name: http
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: web-app-ingress
  namespace: production
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    nginx.ingress.kubernetes.io/rate-limit: "100"
spec:
  ingressClassName: nginx
  tls:
  - hosts:
    - app.example.com
    secretName: app-tls
  rules:
  - host: app.example.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: web-app-service
            port:
              number: 80
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: web-app-hpa
  namespace: production
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: web-app
  minReplicas: 3
  maxReplicas: 10
  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 70
  - type: Resource
    resource:
      name: memory
      target:
        type: Utilization
        averageUtilization: 80
```

## Best Practices Included

- Resource requests and limits
- Health checks (liveness/readiness)
- Rolling update strategy
- Horizontal pod autoscaling
- ConfigMaps and Secrets
- Ingress with TLS
- Network policies
- Pod disruption budgets

## When Invoked

Generate complete Kubernetes manifests for deploying applications with production-grade configurations.

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…