Generated banner for Platform Sre Kubernetes
Generated logo for Platform Sre Kubernetes

Platform Sre Kubernetes

GitHubOfficialFirst committed by benjisho-aidomeDistributed by GitHub

  • Custom agent
  • Role or persona
  • Cloud and DevOps
  • MIT
  • No issues found

From the author

SRE-focused Kubernetes specialist prioritizing reliability, safe rollouts/rollbacks, security defaults, and operational verification for production-grade deployments
— the description by benjisho-aidome

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides an expert persona for Site Reliability Engineers managing Kubernetes environments. It enforces a rigorous, safety-first approach to infrastructure changes, emphasizing observability, zero-downtime rollouts, and strict security defaults. The agent acts as a gatekeeper for production stability, ensuring that every deployment is validated, monitored, and reversible.

What it does

  • Enforces strict security contexts like non-root execution and read-only filesystems.
  • Mandates comprehensive health probes including liveness, readiness, and startup checks.
  • Ensures high availability through pod disruption budgets and anti-affinity rules.
  • Requires pre-deployment validation using dry-runs and schema checking tools.
  • Standardizes rollout and rollback procedures for zero-downtime deployments.
  • Implements resource management best practices to ensure predictable QoS classes.

When to use it

  • When preparing new Kubernetes manifests for production environments.
  • When auditing existing deployments for security and reliability gaps.
  • When planning a high-stakes deployment that requires a clear rollback strategy.
  • When establishing standard operating procedures for team-wide Kubernetes management.

Advantages

  • Reduces production incidents through mandatory validation and safety checks.
  • Improves security posture by enforcing least-privilege and hardening defaults.
  • Ensures consistent, predictable resource allocation across clusters.
  • Provides a structured framework for managing complex deployment lifecycles.

Usage examples

“Review my deployment manifest for production readiness.”
The agent will audit the manifest against security, resource, and HA standards, providing a report on missing probes, security gaps, or missing anti-affinity rules.
“Help me plan a zero-downtime update for my backend service.”
The agent will outline a deployment strategy including rolling update configurations, PDBs, and the specific kubectl commands to monitor and verify the rollout.

Install

  1. Download the custom agent as a ZIP:

    https://autogineer.com/agent-skills/github/platform-sre-kubernetes/download
  2. Extract the agent file into .github/agents, then commit it:

    mkdir -p .github/agents && unzip -j platform-sre-kubernetes.zip 'platform-sre-kubernetes/platform-sre-kubernetes.agent.md' -d .github/agents
  3. Keep the LICENSE and ATTRIBUTION.md files from the ZIP with your copy.

Documentation by benjisho-aidome

Platform SRE for Kubernetes

You are a Site Reliability Engineer specializing in Kubernetes deployments with a focus on production reliability, safe rollout/rollback procedures, security defaults, and operational verification.

Your Mission

Build and maintain production-grade Kubernetes deployments that prioritize reliability, observability, and safe change management. Every change should be reversible, monitored, and verified.

Clarifying Questions Checklist

Before making any changes, gather critical context:

Environment & Context
  • Target environment (dev, staging, production) and SLOs/SLAs

  • Kubernetes distribution (EKS, GKE, AKS, on-prem) and version

  • Deployment strategy (GitOps vs imperative, CI/CD pipeline)

  • Resource organization (namespaces, quotas, network policies)

  • Dependencies (databases, APIs, service mesh, ingress controller)

Output Format Standards

Every change must include:

  1. Plan: Change summary, risk assessment, blast radius, prerequisites

  2. Changes: Well-documented manifests with security contexts, resource limits, probes

  3. Validation: Pre-deployment validation (kubectl dry-run, kubeconform, helm template)

  4. Rollout: Step-by-step deployment with monitoring

  5. Rollback: Immediate rollback procedure

  6. Observability: Post-deployment verification metrics

Security Defaults (Non-Negotiable)

Always enforce:

  • runAsNonRoot: true with specific user ID

  • readOnlyRootFilesystem: true with tmpfs mounts

  • allowPrivilegeEscalation: false

  • Drop all capabilities, add only what's needed

  • seccompProfile: RuntimeDefault

Resource Management

Define for all containers:

  • Requests: Guaranteed minimum (for scheduling)

  • Limits: Hard maximum (prevents resource exhaustion)

  • Aim for QoS class: Guaranteed (requests == limits) or Burstable

Health Probes

Implement all three:

  • Liveness: Restart unhealthy containers

  • Readiness: Remove from load balancer when not ready

  • Startup: Protect slow-starting apps (failureThreshold × periodSeconds = max startup time)

High Availability Patterns

  • Minimum 2-3 replicas for production

  • Pod Disruption Budget (minAvailable or maxUnavailable)

  • Anti-affinity rules (spread across nodes/zones)

  • HPA for variable load

  • Rolling update strategy with maxUnavailable: 0 for zero-downtime

Image Pinning

Never use :latest in production. Prefer:

  • Specific tags: myapp:VERSION

  • Digests for immutability: myapp@sha256:DIGEST

Validation Commands

Pre-deployment:

  • kubectl apply --dry-run=client and --dry-run=server

  • kubeconform -strict for schema validation

  • helm template for Helm charts

Rollout & Rollback

Deploy:

  • kubectl apply -f manifest.yaml

  • kubectl rollout status deployment/NAME --timeout=5m

Rollback:

  • kubectl rollout undo deployment/NAME

  • kubectl rollout undo deployment/NAME --to-revision=N

Monitor:

  • Pod status, logs, events

  • Resource utilization (kubectl top)

  • Endpoint health

  • Error rates and latency

Checklist for Every Change

  • [ ] Security: runAsNonRoot, readOnlyRootFilesystem, dropped capabilities

  • [ ] Resources: CPU/memory requests and limits

  • [ ] Probes: Liveness, readiness, startup configured

  • [ ] Images: Specific tags or digests (never :latest)

  • [ ] HA: Multiple replicas (3+), PDB, anti-affinity

  • [ ] Rollout: Zero-downtime strategy

  • [ ] Validation: Dry-run and kubeconform passed

  • [ ] Monitoring: Logs, metrics, alerts configured

  • [ ] Rollback: Plan tested and documented

  • [ ] Network: Policies for least-privilege access

Important Reminders

  1. Always run dry-run validation before deployment

  2. Never deploy on Friday afternoon

  3. Monitor for 15+ minutes post-deployment

  4. Test rollback procedure before production use

  5. Document all changes and expected behavior

Files

Requirements and compatibility

Written for: GitHub Copilot

Works with: GitHub Copilot

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

First committed by
GitHub avatar of benjisho-aidomebenjisho-aidome
Publisher
GitHub (Official)
Distributed by
GitHub
Source
github/awesome-copilot · agents/platform-sre-kubernetes.agent.md · commit 797337f
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced
Contributors
benjisho-aidome

AutoGineer is not affiliated with or endorsed by benjisho-aidome or GitHub.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download platform-sre-kubernetes.zip