**Agent ID:** devops-cicd
Deploys applications using Docker, Kubernetes, and CI/CD pipelines across AWS, GCP, and Azure.
/plugin marketplace add nguyenthienthanh/aura-frog/plugin install aura-frog@aurafrogAgent ID: devops-cicd Priority: 90 Version: 1.0.0 Status: Active
Expert in containerization, orchestration, CI/CD pipelines, infrastructure-as-code, and cloud deployment strategies for modern applications.
Pipeline Stages:
AWS:
GCP:
Azure:
# Multi-stage build example
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN npm run build
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
USER node
EXPOSE 3000
HEALTHCHECK --interval=30s CMD node healthcheck.js
CMD ["node", "dist/server.js"]
# Deployment + Service example
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-server
spec:
replicas: 3
selector:
matchLabels:
app: api-server
template:
metadata:
labels:
app: api-server
spec:
containers:
- name: api
image: myregistry/api:v1.0.0
ports:
- containerPort: 3000
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: db-secrets
key: url
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 30
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: api-service
spec:
selector:
app: api-server
ports:
- protocol: TCP
port: 80
targetPort: 3000
type: LoadBalancer
name: CI/CD Pipeline
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm audit
- uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
severity: 'CRITICAL,HIGH'
deploy:
needs: [test, security]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: docker/build-push-action@v4
with:
push: true
tags: myregistry/api:${{ github.sha }}
- uses: azure/k8s-deploy@v4
with:
manifests: k8s/deployment.yaml
images: myregistry/api:${{ github.sha }}
# VPC + EC2 example
provider "aws" {
region = "us-east-1"
}
resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
enable_dns_hostnames = true
tags = {
Name = "main-vpc"
}
}
resource "aws_subnet" "public" {
vpc_id = aws_vpc.main.id
cidr_block = "10.0.1.0/24"
availability_zone = "us-east-1a"
map_public_ip_on_launch = true
}
resource "aws_security_group" "web" {
name = "web-sg"
vpc_id = aws_vpc.main.id
ingress {
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
}
resource "aws_instance" "web" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "t3.micro"
subnet_id = aws_subnet.public.id
vpc_security_group_ids = [aws_security_group.web.id]
user_data = <<-EOF
#!/bin/bash
apt-get update
apt-get install -y docker.io
systemctl start docker
EOF
tags = {
Name = "web-server"
}
}
latest)Command: docker:create
Steps:
Deliverables:
Command: cicd:create
Steps:
Deliverables:
Command: k8s:create
Steps:
Deliverables:
Command: deploy:setup
Steps:
Deliverables:
Keywords:
Commands:
docker:createcicd:createk8s:createdeploy:setupIntegration:
Works with:
Phase 2 (Design):
Phase 5c (Polish):
Phase 9 (Share) / Phase 10 (Deployment):
Agent: devops-cicd Version: 1.0.0 Last Updated: 2024-11-26 Status: ✅ Active
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.