Kubernetes Deployment

aj-geddes/useful-ai-prompts/skills/kubernetes-deployment

by aj-geddes3f5182cfd739No license355 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 7 months ago

Deploy, manage, and scale containerized applications on Kubernetes clusters with best practices for production workloads, resource management, and rolling updates.

Includes scriptsDevOps & Cloud
AI-generated overview

Deploy, manage, and scale containerized applications on Kubernetes with production best practices.

What it does
Provides guidance and reference material for deploying containerized workloads to Kubernetes clusters, covering resource requests and limits, health checks, rolling updates, service accounts and RBAC, and pod security. It includes a starter configuration template and a validation script for checking configuration. The deliverable is deployment configuration and operational guidance rather than application code.
When to use it
Use it when deploying or scaling containerized applications on Kubernetes, setting up multi-environment rollouts, or configuring resource management, health checks, and access controls for production workloads.
Requirements
A Kubernetes cluster and kubectl or equivalent access, plus permissions to create deployments and related resources. Ships a shell validation script and a YAML configuration template.

Kubernetes Deployment

Table of Contents

Overview

Master Kubernetes deployments for managing containerized applications at scale, including multi-container services, resource allocation, health checks, and rolling deployment strategies.

When to Use

  • Container orchestration and management
  • Multi-environment deployments (dev, staging, prod)
  • Auto-scaling microservices
  • Rolling updates and blue-green deployments
  • Service discovery and load balancing
  • Resource quota and limit management
  • Pod networking and security policies

Quick Start

Minimal working example:

yaml
# kubernetes-deployment.yamlapiVersion: apps/v1kind: Deploymentmetadata:  name: api-service  namespace: production  labels:    app: api-service    version: v1spec:  replicas: 3  strategy:    type: RollingUpdate    rollingUpdate:      maxSurge: 1      maxUnavailable: 0  selector:    matchLabels:      app: api-service  template:    metadata:      labels:        app: api-service        version: v1      annotations:// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Complete Deployment with Resource Management [blocked]Complete Deployment with Resource Management
Deployment Script [blocked]Deployment Script
Service Account and RBAC [blocked]Service Account and RBAC

Best Practices

✅ DO

  • Use resource requests and limits
  • Implement health checks (liveness, readiness)
  • Use ConfigMaps for configuration
  • Apply security context restrictions
  • Use service accounts and RBAC
  • Implement pod anti-affinity
  • Use namespaces for isolation
  • Enable pod security policies

❌ DON'T

  • Use latest image tags in production
  • Run containers as root
  • Set unlimited resource usage
  • Skip readiness probes
  • Deploy without resource limits
  • Mix configurations in container images
  • Use default service accounts

Source and attribution

Source:aj-geddes/useful-ai-promptsinskills/kubernetes-deploymentat commit3f5182c

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal