/marks-languages:k8s-architecturefrom marks-languages
Design and implement production-grade Kubernetes clusters with best practices for reliability, security, and scalability. Use when planning cluster architecture, designing K8s network models, or implementing multi-cluster strategies.
Ships in marks-languages. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Principles and patterns for designing production-ready Kubernetes environments.
Single Kubernetes Cluster
├── Namespace: production
│ ├── Network Policy
│ ├── Resource Quotas
│ ├── RBAC: Production Team
│ └── Workloads with high QoS
├── Namespace: staging
│ ├── Network Policy
│ ├── Resource Quotas
│ ├── RBAC: Dev Teams
│ └── Workloads with medium QoS
└── Namespace: development
├── Network Policy
├── Resource Quotas
├── RBAC: Dev Teams
└── Workloads with low QoS
Best for:
Production Cluster Staging Cluster Development Cluster
├── Stringent Security ├── Standard Security ├── Relaxed Security
├── High Reliability ├── Medium Reliability ├── Basic Reliability
├── Production Workloads ├── Pre-production Tests ├── Development Work
├── Limited Access ├── Team Access └── Developer Access
└── Strict Change Control └── Managed Changes
Best for:
Primary Region (AWS) Secondary Region (Azure)
├── Production Cluster ├── DR Cluster
│ ├── Active Workloads │ ├── Passive/Active Workloads
│ ├── Primary Data │ ├── Replicated Data
│ └── Full Traffic │ └── Failover Traffic
├── Staging Cluster └── Limited Staging
└── Development Cluster
Best for:
Kubernetes Cluster
├── System Node Pool (Small VMs)
│ └── System Components (CoreDNS, Metrics, etc.)
├── General Purpose Pool (Medium VMs)
│ └── Stateless Applications
├── Memory-Optimized Pool (High Memory VMs)
│ └── In-Memory Databases, Caches
├── Compute-Optimized Pool (High CPU VMs)
│ └── Batch Processing, ML Workloads
└── Storage-Optimized Pool (High Disk I/O VMs)
└── Databases, Storage Systems
Best for:
Kubernetes Workloads
├── Node Affinity/Anti-Affinity
│ └── Place workloads on specific nodes
├── Pod Affinity/Anti-Affinity
│ └── Control pod-to-pod placement
├── Taints and Tolerations
│ └── Restrict which pods run on nodes
└── Topology Spread Constraints
└── Distribute pods across failure domains
Implementation:
# Node affinity example
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-type
operator: In
values:
- memory-optimized
| Component | Options | Best For |
|---|---|---|
| CNI | Calico, Cilium, Flannel | Security policies, performance, simplicity |
| Service Mesh | Istio, Linkerd, Consul | Advanced traffic, security, observability |
| Ingress | Nginx, Contour, Traefik | HTTP routing, TLS termination, path-based rules |
| Load Balancing | MetalLB, Cloud LBs | External traffic distribution |
| DNS | CoreDNS, External DNS | Service discovery, external DNS integration |
┌─────────────────────────────────────┐
│ Network Policy: default-deny-all │
└─────────────────────────────────────┘
│
▼
┌─────────────────────┐ ┌─────────────────────┐ ┌─────────────────────┐
│ Namespace: frontend │ │ Namespace: backend │ │ Namespace: database │
│ ┌─────────────────┐ │ │ ┌─────────────────┐ │ │ ┌─────────────────┐ │
│ │ Allow ingress │◄┼──────┼─┤ Allow frontend │ │ │ │ Allow backend │ │
│ │ from Internet │ │ │ │ namespace │◄┼──────┼─┤ namespace │ │
│ └─────────────────┘ │ │ └─────────────────┘ │ │ └─────────────────┘ │
│ ┌─────────────────┐ │ │ ┌─────────────────┐ │ │ ┌─────────────────┐ │
│ │ Allow egress to │ │ │ │ Allow egress to │ │ │ │ Deny all other │ │
│ │ backend only │─┼─────►│ │ database only │─┼─────►│ │ traffic │ │
│ └─────────────────┘ │ │ └─────────────────┘ │ │ └─────────────────┘ │
└─────────────────────┘ └─────────────────────┘ └─────────────────────┘
┌───────────────────────────────────────────────────────────┐
│ Control Plane - Multi-AZ/Multi-Zone │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ AZ 1 │ │ AZ 2 │ │ AZ 3 │ │
│ │ ┌─────────┐ │ │ ┌─────────┐ │ │ ┌─────────┐ │ │
│ │ │API Server│ │ │ │API Server│ │ │ │API Server│ │ │
│ │ └─────────┘ │ │ └─────────┘ │ │ └─────────┘ │ │
│ │ ┌─────────┐ │ │ ┌─────────┐ │ │ ┌─────────┐ │ │
│ │ │Controller│ │ │ │Controller│ │ │ │Controller│ │ │
│ │ │Manager │ │ │ │Manager │ │ │ │Manager │ │ │
│ │ └─────────┘ │ │ └─────────┘ │ │ └─────────┘ │ │
│ │ ┌─────────┐ │ │ ┌─────────┐ │ │ ┌─────────┐ │ │
│ │ │Scheduler │ │ │ │Scheduler │ │ │ │Scheduler │ │ │
│ │ └─────────┘ │ │ └─────────┘ │ │ └─────────┘ │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
└───────────────────────────────────────────────────────────┘
│
┌─────────────────────────▼───────────────────────────────────┐
│ Distributed etcd │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ etcd 1 │◄──────────►│ etcd 2 │◄──────────►│ etcd 3 │ │
│ │ (AZ 1) │ │ (AZ 2) │ │ (AZ 3) │ │
│ └─────────┘ └─────────┘ └─────────┘ │
└───────────────────────────────────────────────────────────────┘
Key recommendations:
# Performance-optimized
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: performance
provisioner: kubernetes.io/aws-ebs
parameters:
type: io1
iopsPerGB: "50"
fsType: ext4
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
---
# Cost-optimized
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: standard
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp3
fsType: ext4
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
Best practices:
WaitForFirstConsumer binding mode┌───────────────────────────────────┐
│ Management Cluster │
│ ┌───────────────────────────────┐ │
│ │ Cluster API │ │
│ │ ┌─────────┐ ┌─────────┐ │ │
│ │ │Providers│ │Templates│ │ │
│ │ └─────────┘ └─────────┘ │ │
│ └───────────────────────────────┘ │
│ ┌───────────────────────────────┐ │
│ │ Fleet Management │ │
│ │ ┌─────────┐ ┌─────────┐ │ │
│ │ │Config │ │Workload │ │ │
│ │ │Sync │ │Placement│ │ │
│ │ └─────────┘ └─────────┘ │ │
│ └───────────────────────────────┘ │
└───────────────────────────────────┘
│ │ │
┌─────▼─┐ ┌────▼──┐ ┌───▼───┐
│Cluster│ │Cluster│ │Cluster│
│ 1 │ │ 2 │ │ 3 │
└───────┘ └───────┘ └───────┘
Implementation options:
| Factor | Managed K8s | Self-Managed K8s |
|---|---|---|
| Control Plane Management | Provider-managed | Team responsibility |
| Upgrade Control | Limited scheduling | Full control |
| Feature Availability | Provider-dependent | Full access |
| Infrastructure Integration | Pre-integrated | Custom integration |
| Cost Model | Control plane fee + nodes | Node costs only |
| Operational Overhead | Lower | Higher |
| Support | Provider support | Internal/community |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/bashDefensive Bash scripting patterns for reliable automation. Use when writing shell scripts./cloud-designDesign resilient, scalable multi-cloud architectures with best practices for AWS, Azure, and GCP. Use when creating cloud architecture diagrams, planning cloud infrastructure, or designing cloud migration strategies./golangGo patterns for backend development, testing, and clean architecture. Use when writing Go code./pythonPython patterns for backend development, testing, and async programming. Use when writing Python code./rust-engineerAcquire expert Rust developer specialisation in rust systems programming, memory safety, and zero-cost abstractions. Masters ownership patterns, async programming, and performance optimisation for mission-critical applications./terraformTerraform patterns for AWS infrastructure. Use when writing IaC for cloud infrastructure.npx claudepluginhub malston/marks-marketplace --plugin marks-languages