#devops
70 snippets tagged with #devops
Health Check Endpoint Pattern
Implement comprehensive health checks with dependency status, uptime, and readiness probes.
Best for: Kubernetes liveness probes
SSH Config for Server Management
Organized SSH config file with host aliases, jump hosts, and connection multiplexing for DevOps.
Best for: Managing connections to multiple servers
Makefile for DevOps Automation
Makefile with common DevOps targets for building, testing, deploying, and managing Docker containers.
Best for: Standardizing developer commands across teams
Log Rotation Management Script
Automate log rotation with compression, retention policies, and disk space monitoring in Bash.
Best for: Preventing disk space exhaustion from logs
GitHub Actions — Node.js CI Pipeline
Complete CI workflow for Node.js: install, lint, test, build on every push and PR with caching.
Best for: Automated testing on every push and PR
GitHub Actions — Deploy to Cloudflare Pages
Automated deployment pipeline to Cloudflare Pages with build preview for PRs and production on main.
Best for: Zero-config deployment for static Next.js exports
Docker Compose — PostgreSQL Dev Environment
Full Docker Compose setup for PostgreSQL with pgAdmin, init scripts, volumes, and health checks.
Best for: Local database development environment
Kubernetes Deployment Manifest
Production-ready Kubernetes deployment with resource limits, probes, rolling updates, and anti-affinity.
Best for: Deploying containerized applications to Kubernetes
Kubernetes HPA — Horizontal Pod Autoscaler
Configure horizontal pod autoscaling based on CPU, memory, and custom metrics for Kubernetes workloads.
Best for: Auto-scaling APIs based on traffic load
GitHub Actions — Reusable Workflow Pattern
Create reusable workflows called from other workflows with inputs, secrets, and output passing.
Best for: DRY deployment workflows across environments
Kubernetes ConfigMap and Secret Management
Create and use ConfigMaps and Secrets for application configuration with env vars and volume mounts.
Best for: Managing application configuration in Kubernetes
Docker Compose — Multi-Environment Override
Use Docker Compose override files for dev, staging, and production with shared base configuration.
Best for: Shared base config with environment-specific overrides
Terraform — AWS S3 + CloudFront Static Site
Provision an S3 static website with CloudFront CDN, SSL certificate, and origin access control.
Best for: Deploying static sites with global CDN distribution
Kubectl Rollout — Restart, Status, and Undo
Essential kubectl rollout commands for deployments: restart, status checks, history, and rollback.
Best for: Zero-downtime deployment restarts
AWS SDK v3 — S3 Operations in TypeScript
Perform S3 operations with AWS SDK v3: upload, download, list, presigned URLs, and multipart upload.
Best for: Server-side file uploads to S3
Vercel API — Trigger and List Deployments
Use the Vercel REST API to trigger deployments, list recent builds, and check deployment status.
Best for: Triggering deployments from CI or Slack bots
Kubernetes CronJob — Scheduled Tasks
Create Kubernetes CronJobs for scheduled tasks with history limits, concurrency control, and deadlines.
Best for: Scheduling daily data exports or reports
SSL Certificate Renewal with Certbot
Automate Let's Encrypt SSL certificate issuance and renewal with Certbot and NGINX reload.
Best for: Automated HTTPS setup for web servers
Docker Compose Profiles — Optional Services
Use Docker Compose profiles to selectively start optional services like monitoring, debugging tools.
Best for: Optional monitoring stack for local development
Docker Swarm
DevOps practice: docker-swarm
Best for: infrastructure management
Docker Network
DevOps practice: docker-network
Best for: infrastructure management
Docker Volume
DevOps practice: docker-volume
Best for: infrastructure management
Docker Health Check
DevOps practice: docker-health-check
Best for: infrastructure management
Kubernetes Ingress
DevOps practice: kubernetes-ingress
Best for: infrastructure management
Kubernetes Service Mesh
DevOps practice: kubernetes-service-mesh
Best for: infrastructure management
Kubernetes Operators
DevOps practice: kubernetes-operators
Best for: infrastructure management
Helm Charts
DevOps practice: helm-charts
Best for: infrastructure management
Ansible Automation
DevOps practice: ansible-automation
Best for: infrastructure management
Puppet Infrastructure
DevOps practice: puppet-infrastructure
Best for: infrastructure management
Chef Infrastructure
DevOps practice: chef-infrastructure
Best for: infrastructure management
Terraform Aws
DevOps practice: terraform-aws
Best for: infrastructure management
Cloudformation
DevOps practice: cloudformation
Best for: infrastructure management
Azure Templates
DevOps practice: azure-templates
Best for: infrastructure management
Aws Cdk
DevOps practice: aws-cdk
Best for: infrastructure management
Pulumi Iac
DevOps practice: pulumi-iac
Best for: infrastructure management
Jenkins Pipeline
DevOps practice: jenkins-pipeline
Best for: infrastructure management
Circleci Workflow
DevOps practice: circleci-workflow
Best for: infrastructure management
Travis Ci
DevOps practice: travis-ci
Best for: infrastructure management
Drone Ci
DevOps practice: drone-ci
Best for: infrastructure management
Argocd Deployment
DevOps practice: argocd-deployment
Best for: infrastructure management
Flux Gitops
DevOps practice: flux-gitops
Best for: infrastructure management
Kustomize Templates
DevOps practice: kustomize-templates
Best for: infrastructure management
Skaffold Development
DevOps practice: skaffold-development
Best for: infrastructure management
Prometheus Advanced
DevOps practice: prometheus-advanced
Best for: infrastructure management
Grafana Dashboards
DevOps practice: grafana-dashboards
Best for: infrastructure management
Elk Stack Advanced
DevOps practice: elk-stack-advanced
Best for: infrastructure management
Datadog Monitoring
DevOps practice: datadog-monitoring
Best for: infrastructure management
Jaeger Tracing
DevOps practice: jaeger-tracing
Best for: infrastructure management
Zipkin Distributed
DevOps practice: zipkin-distributed
Best for: infrastructure management
Opentelemetry Instrumentation
DevOps practice: opentelemetry-instrumentation
Best for: infrastructure management
Dynatrace Monitoring
DevOps practice: dynatrace-monitoring
Best for: infrastructure management
Vault Secrets
DevOps practice: vault-secrets
Best for: infrastructure management
Sealed Secrets
DevOps practice: sealed-secrets
Best for: infrastructure management
External Secrets
DevOps practice: external-secrets
Best for: infrastructure management
Certmanager Certificates
DevOps practice: certmanager-certificates
Best for: infrastructure management
Network Policies
DevOps practice: network-policies
Best for: infrastructure management
Pod Security
DevOps practice: pod-security
Best for: infrastructure management
Rbac Authorization
DevOps practice: rbac-authorization
Best for: infrastructure management
Service Accounts
DevOps practice: service-accounts
Best for: infrastructure management
Blue Green Deployment
DevOps practice: blue-green-deployment
Best for: infrastructure management
Canary Release
DevOps practice: canary-release
Best for: infrastructure management
Chaos Engineering
DevOps practice: chaos-engineering
Best for: infrastructure management
Incident Response Runbook
DevOps practice: incident-response-runbook
Best for: infrastructure management
Backup Disaster Recovery
DevOps practice: backup-disaster-recovery
Best for: infrastructure management
Infra Cost Optimization
DevOps practice: infra-cost-optimization
Best for: infrastructure management
Container Image Scanning
DevOps practice: container-image-scanning
Best for: infrastructure management
Dependency Vulnerability Scan
DevOps practice: dependency-vulnerability-scan
Best for: infrastructure management
Rate Limiting Gateway
DevOps practice: rate-limiting-gateway
Best for: infrastructure management
Autoscaling Hpa
DevOps practice: autoscaling-hpa
Best for: infrastructure management
Kafka Topic — Create and Manage with CLI
Create, describe, alter, and manage Kafka topics using the kafka-topics CLI with partitioning config.
Best for: Setting up Kafka topics for new data streams