| name | devops |
| description | Deploy applications with Docker and Kubernetes, automate with CI/CD, manage infrastructure with code, and configure cloud platforms and networking. |
| sasmp_version | 2.0.0 |
| bonded_agent | 06-devops-infrastructure |
| bond_type | PRIMARY_BOND |
| atomic_operations | ["CONTAINERIZATION","KUBERNETES_DEPLOYMENT","CI_CD_PIPELINE","INFRASTRUCTURE_PROVISIONING"] |
| parameter_validation | {"query":{"type":"string","required":true,"minLength":5,"maxLength":2500},"platform":{"type":"string","enum":["aws","gcp","azure","on-prem"],"required":false},"orchestrator":{"type":"string","enum":["kubernetes","docker-swarm","ecs"],"required":false}} |
| retry_logic | {"max_attempts":3,"backoff":"exponential","initial_delay_ms":2000} |
| logging_hooks | {"on_invoke":"skill.devops.invoked","on_success":"skill.devops.completed","on_error":"skill.devops.failed"} |
| exit_codes | {"SUCCESS":0,"INVALID_INPUT":1,"DEPLOYMENT_FAILED":2,"SECURITY_ISSUE":3} |
DevOps & Infrastructure Skill
Bonded to: devops-infrastructure-agent
Quick Start
"Containerize my Python application with Docker"
"Set up a CI/CD pipeline with GitHub Actions"
"Deploy my app to Kubernetes"
Instructions
- Containerize: Create optimized Docker images
- Orchestrate: Configure Kubernetes or Docker Swarm
- Automate: Set up CI/CD pipelines
- Provision: Deploy infrastructure with Terraform
- Monitor: Configure observability stack
Docker Best Practices
Optimized Dockerfile
# Multi-stage build for smaller images
FROM python:3.12-slim AS builder
WORKDIR /app
COPY requirements.txt .
RUN pip install --user --no-cache-dir -r requirements.txt
FROM python:3.12-slim
RUN useradd --create-home appuser
USER appuser
WORKDIR /app
COPY --from=builder /root/.local /home/appuser/.local
ENV PATH=/home/appuser/.local/bin:$PATH
COPY --chown=appuser:appuser . .
HEALTHCHECK --interval=30s --timeout=3s \
CMD curl -f http://localhost:8000/health || exit 1
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
Image Checklist
Kubernetes Essentials
Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-server
spec:
replicas: 3
selector: