Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/devops/kubernetes-deployment-creator/skills/creating-kubernetes-deployments

creating-kubernetes-deployments

Unverified

Deploy applications to Kubernetes with production-ready manifests. Supports Deployments, Services, Ingress, HPA, ConfigMaps, Secrets, StatefulSets, and NetworkPolicies. Includes health checks, resource limits, auto-scaling, and TLS termination. Use when working with creating kubernetes deployments. Trigger with 'creating', 'kubernetes', 'deployments'.

assets/pdb_template.yaml

View on GitHub
# PodDisruptionBudget Template
# Limits voluntary disruptions during node maintenance, upgrades, etc.

apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: my-app-pdb
  namespace: default
  labels:
    app: my-app
spec:
  # Select pods this PDB applies to
  selector:
    matchLabels:
      app: my-app

  # Option 1: Minimum pods that must be available
  # Use when you know the minimum replicas needed for service
  minAvailable: 2

  # Option 2: Maximum pods that can be unavailable
  # Use when you know how many can be down at once
  # maxUnavailable: 1

  # Optional: Conditions for unhealthy pod eviction
  # Requires K8s 1.26+ with PDBUnhealthyPodEvictionPolicy feature gate
  # unhealthyPodEvictionPolicy: IfHealthyBudget  # or AlwaysAllow

---
# Example: PDB with percentage
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: my-app-pdb-percent
  namespace: default
spec:
  selector:
    matchLabels:
      app: my-app
  # Keep at least 50% of pods available
  minAvailable: "50%"

---
# Example: PDB for stateful applications
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: database-pdb
  namespace: default
spec:
  selector:
    matchLabels:
      app: database
  # Never allow more than 1 pod down (for 3-node cluster, maintains quorum)
  maxUnavailable: 1

# Usage Guidelines:
#
# For Web APIs (3+ replicas):
#   minAvailable: 2 or maxUnavailable: 1
#
# For Databases (3-node cluster):
#   maxUnavailable: 1 (maintains quorum)
#
# For Workers:
#   maxUnavailable: "25%" (can tolerate some downtime)
#
# For Critical Services:
#   minAvailable: "80%" (high availability)
#
# Note: PDBs only affect VOLUNTARY disruptions:
# - kubectl drain
# - Node upgrades
# - Cluster autoscaler scale-down
#
# PDBs do NOT protect against:
# - Node failures
# - Pod crashes
# - Out of memory kills
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 196kUpdated Claude CodeCodexVerifiedInstall