#devops

70 snippets tagged with #devops

typescriptbeginner

Health Check Endpoint Pattern

Implement comprehensive health checks with dependency status, uptime, and readiness probes.

Best for: Kubernetes liveness probes

#nodejs#health-check
bashbeginner

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

#ssh#config
bashintermediate

Makefile for DevOps Automation

Makefile with common DevOps targets for building, testing, deploying, and managing Docker containers.

Best for: Standardizing developer commands across teams

#makefile#automation
bashintermediate

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

#bash#devops
yamlbeginner

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#ci-cd
yamlintermediate

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

#github-actions#cloudflare
yamlbeginner

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

#docker-compose#postgres
yamlintermediate

Kubernetes Deployment Manifest

Production-ready Kubernetes deployment with resource limits, probes, rolling updates, and anti-affinity.

Best for: Deploying containerized applications to Kubernetes

#kubernetes#deployment
yamladvanced

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

#kubernetes#autoscaling
yamlintermediate

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

#github-actions#ci-cd
yamlbeginner

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

#kubernetes#configmap
yamlintermediate

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

#docker-compose#environments
bashadvanced

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

#terraform#aws
bashbeginner

Kubectl Rollout — Restart, Status, and Undo

Essential kubectl rollout commands for deployments: restart, status checks, history, and rollback.

Best for: Zero-downtime deployment restarts

#kubernetes#kubectl
typescriptintermediate

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

#aws#s3
typescriptintermediate

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

#vercel#api
yamlbeginner

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

#kubernetes#cronjob
bashintermediate

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

#ssl#certbot
yamlbeginner

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-compose#profiles
bashbeginner

Docker Swarm

DevOps practice: docker-swarm

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Docker Network

DevOps practice: docker-network

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Docker Volume

DevOps practice: docker-volume

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Docker Health Check

DevOps practice: docker-health-check

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Kubernetes Ingress

DevOps practice: kubernetes-ingress

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Kubernetes Service Mesh

DevOps practice: kubernetes-service-mesh

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Kubernetes Operators

DevOps practice: kubernetes-operators

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Helm Charts

DevOps practice: helm-charts

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Ansible Automation

DevOps practice: ansible-automation

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Puppet Infrastructure

DevOps practice: puppet-infrastructure

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Chef Infrastructure

DevOps practice: chef-infrastructure

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Terraform Aws

DevOps practice: terraform-aws

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Cloudformation

DevOps practice: cloudformation

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Azure Templates

DevOps practice: azure-templates

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Aws Cdk

DevOps practice: aws-cdk

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Pulumi Iac

DevOps practice: pulumi-iac

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Jenkins Pipeline

DevOps practice: jenkins-pipeline

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Circleci Workflow

DevOps practice: circleci-workflow

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Travis Ci

DevOps practice: travis-ci

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Drone Ci

DevOps practice: drone-ci

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Argocd Deployment

DevOps practice: argocd-deployment

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Flux Gitops

DevOps practice: flux-gitops

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Kustomize Templates

DevOps practice: kustomize-templates

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Skaffold Development

DevOps practice: skaffold-development

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Prometheus Advanced

DevOps practice: prometheus-advanced

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Grafana Dashboards

DevOps practice: grafana-dashboards

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Elk Stack Advanced

DevOps practice: elk-stack-advanced

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Datadog Monitoring

DevOps practice: datadog-monitoring

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Jaeger Tracing

DevOps practice: jaeger-tracing

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Zipkin Distributed

DevOps practice: zipkin-distributed

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Opentelemetry Instrumentation

DevOps practice: opentelemetry-instrumentation

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Dynatrace Monitoring

DevOps practice: dynatrace-monitoring

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Vault Secrets

DevOps practice: vault-secrets

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Sealed Secrets

DevOps practice: sealed-secrets

Best for: infrastructure management

#devops#infrastructure
bashintermediate

External Secrets

DevOps practice: external-secrets

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Certmanager Certificates

DevOps practice: certmanager-certificates

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Network Policies

DevOps practice: network-policies

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Pod Security

DevOps practice: pod-security

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Rbac Authorization

DevOps practice: rbac-authorization

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Service Accounts

DevOps practice: service-accounts

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Blue Green Deployment

DevOps practice: blue-green-deployment

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Canary Release

DevOps practice: canary-release

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Chaos Engineering

DevOps practice: chaos-engineering

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Incident Response Runbook

DevOps practice: incident-response-runbook

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Backup Disaster Recovery

DevOps practice: backup-disaster-recovery

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Infra Cost Optimization

DevOps practice: infra-cost-optimization

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Container Image Scanning

DevOps practice: container-image-scanning

Best for: infrastructure management

#devops#infrastructure
bashadvanced

Dependency Vulnerability Scan

DevOps practice: dependency-vulnerability-scan

Best for: infrastructure management

#devops#infrastructure
bashbeginner

Rate Limiting Gateway

DevOps practice: rate-limiting-gateway

Best for: infrastructure management

#devops#infrastructure
bashintermediate

Autoscaling Hpa

DevOps practice: autoscaling-hpa

Best for: infrastructure management

#devops#infrastructure
bashbeginner

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

#kafka#bash