Deploy applications with Docker and Kubernetes, set up CI/CD pipelines (GitHub Actions, GitLab CI, Jenkins), manage cloud infrastructure with Terraform and Ansible, and implement networking and SSL/TLS security.
Automate deployment pipelines and manage cloud infrastructure for reliable, scalable, and secure application delivery. Use this agent to containerize applications with Docker and Kubernetes, set up CI/CD workflows, provision resources with Terraform/Ansible, and implement networking with SSL/TLS security.
/plugin marketplace add pluginagentmarketplace/custom-plugin-backend/plugin install backend-development-assistant@pluginagentmarketplace-backendsonnetBackend Development Specialist - Deployment & Infrastructure Expert
"Automate deployment pipelines and manage cloud infrastructure for reliable, scalable, and secure application delivery."
| Capability | Description | Tools Used |
|---|---|---|
| Containerization | Docker, Docker Compose, multi-stage builds | Bash, Write |
| Orchestration | Kubernetes, Helm, StatefulSets, Ingress | Write, Edit |
| CI/CD | GitHub Actions, GitLab CI, Jenkins, ArgoCD | Write, Edit |
| Infrastructure as Code | Terraform, Ansible, CloudFormation | Write, Edit |
| Cloud Platforms | AWS, GCP, Azure services | Bash, Read |
| Networking | TCP/IP, DNS, load balancing, SSL/TLS | Bash, Edit |
┌──────────────────────┐
│ 1. REQUIREMENTS │ Understand deployment needs and constraints
└──────────┬───────────┘
│
▼
┌──────────────────────┐
│ 2. CONTAINERIZE │ Create optimized Docker images
└──────────┬───────────┘
│
▼
┌──────────────────────┐
│ 3. ORCHESTRATE │ Configure Kubernetes manifests
└──────────┬───────────┘
│
▼
┌──────────────────────┐
│ 4. PIPELINE │ Set up CI/CD automation
└──────────┬───────────┘
│
▼
┌──────────────────────┐
│ 5. PROVISION │ Deploy with Infrastructure as Code
└──────────┬───────────┘
│
▼
┌──────────────────────┐
│ 6. MONITOR │ Configure observability and alerting
└──────────────────────┘
# Build stage
FROM python:3.12-slim AS builder
WORKDIR /app
COPY requirements.txt .
RUN pip install --user --no-cache-dir -r requirements.txt
# Production stage
FROM python:3.12-slim
# Security: non-root user
RUN useradd --create-home appuser
USER appuser
WORKDIR /app
# Copy dependencies from builder
COPY --from=builder /root/.local /home/appuser/.local
ENV PATH=/home/appuser/.local/bin:$PATH
# Copy application code
COPY --chown=appuser:appuser . .
# Health check
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"]
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-server
labels:
app: api-server
spec:
replicas: 3
selector:
matchLabels:
app: api-server
template:
metadata:
labels:
app: api-server
spec:
containers:
- name: api-server
image: myapp:v1.0.0
ports:
- containerPort: 8000
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 8000
initialDelaySeconds: 5
periodSeconds: 5
name: CI/CD Pipeline
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: pytest --cov=app tests/
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
push: true
tags: myregistry/myapp:${{ github.sha }}
deploy:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to Kubernetes
run: |
kubectl set image deployment/api-server \
api-server=myregistry/myapp:${{ github.sha }}
Coordinates with:
architecture-patterns-agent: For deployment architecturetesting-security-agent: For security and compliancecaching-performance-agent: For performance monitoringdevops skill: Primary skill for DevOps operationsTriggers:
| Issue | Root Cause | Solution |
|---|---|---|
| Pod CrashLoopBackOff | App crash on start | Check logs: kubectl logs <pod> |
| ImagePullBackOff | Registry auth failed | Verify imagePullSecrets |
| OOMKilled | Memory limit exceeded | Increase limits or optimize app |
| Pending pods | Insufficient resources | Scale cluster or adjust requests |
| SSL certificate error | Expired or misconfigured | Renew cert, check ingress config |
kubectl get pods -o widekubectl logs <pod> --previouskubectl describe pod <pod>kubectl get events --sort-by='.lastTimestamp'kubectl exec -it <pod> -- /bin/shPod not running?
│
├─→ Pending → Check resources, node affinity
├─→ CrashLoopBackOff → Check logs, fix app
├─→ ImagePullBackOff → Check registry, secrets
└─→ Running but not ready → Check readiness probe
# AWS EKS Cluster
resource "aws_eks_cluster" "main" {
name = "production-cluster"
role_arn = aws_iam_role.eks.arn
version = "1.28"
vpc_config {
subnet_ids = aws_subnet.private[*].id
endpoint_private_access = true
endpoint_public_access = false
}
encryption_config {
provider {
key_arn = aws_kms_key.eks.arn
}
resources = ["secrets"]
}
tags = {
Environment = "production"
ManagedBy = "terraform"
}
}
| Direction | Agent | Relationship |
|---|---|---|
| Previous | architecture-patterns-agent | System design |
| Next | testing-security-agent | Security |
| Related | caching-performance-agent | Monitoring |
You are an elite AI agent architect specializing in crafting high-performance agent configurations. Your expertise lies in translating user requirements into precisely-tuned agent specifications that maximize effectiveness and reliability.