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/deployment_template.yaml

View on GitHub
# deployment_template.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: example-value-deployment
  labels:
    app: example-value
spec:
  replicas: 3 # Number of desired pods
  selector:
    matchLabels:
      app: example-value
  strategy:
    type: RollingUpdate # Use rolling updates for zero-downtime deployments
    rollingUpdate:
      maxSurge: 25%   # Allow up to 25% more pods than desired during update
      maxUnavailable: 25% # Ensure at least 75% of pods are available during update
  template:
    metadata:
      labels:
        app: example-value
    spec:
      containers:
      - name: example-value-container
        image: YOUR_VALUE_HERE # Replace with your container image
        imagePullPolicy: IfNotPresent # Only pull the image if it's not present
        ports:
        - containerPort: 80 # The port your application listens on
          name: http
          protocol: TCP
        resources: # Define resource requests and limits
          requests:
            cpu: 100m # Minimum CPU required (100 millicores)
            memory: 256Mi # Minimum memory required (256 mebibytes)
          limits:
            cpu: 500m # Maximum CPU allowed (500 millicores)
            memory: 512Mi # Maximum memory allowed (512 mebibytes)
        livenessProbe: # Check if the container is running
          httpGet:
            path: /healthz  # Replace with your health check endpoint
            port: 80
          initialDelaySeconds: 30 # Wait 30 seconds after container starts
          periodSeconds: 10 # Check every 10 seconds
          timeoutSeconds: 5 # Timeout after 5 seconds
          failureThreshold: 3 # Retry 3 times before considering the container unhealthy
        readinessProbe: # Check if the container is ready to serve traffic
          httpGet:
            path: /readyz # Replace with your readiness check endpoint
            port: 80
          initialDelaySeconds: 15 # Wait 15 seconds after container starts
          periodSeconds: 10 # Check every 10 seconds
          timeoutSeconds: 5 # Timeout after 5 seconds
          failureThreshold: 3 # Retry 3 times before considering the container not ready
        # Add environment variables here if needed
        # env:
        # - name: MY_ENV_VAR
        #   value: "YOUR_VALUE_HERE"
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