# Kubernetes Orchestration

> Kubernetes deployment and orchestration patterns Use when this capability is needed.

- Skill: `tomevault-io/kubernetes-orchestration` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/kubernetes-orchestration`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/kubernetes-orchestration/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/kubernetes-orchestration

---


# Kubernetes Orchestration

Best practices for Kubernetes deployments and operations.

## When to Use

- Deploying applications to Kubernetes
- Writing or reviewing K8s manifests
- Setting up clusters and workloads

## Core Concepts

### Deployment

```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: app
spec:
  replicas: 3
  selector:
    matchLabels:
      app: myapp
  template:
    metadata:
      labels:
        app: myapp
    spec:
      containers:
      - name: app
        image: myapp:1.0.0
        ports:
        - containerPort: 8080
        resources:
          requests:
            memory: "128Mi"
            cpu: "100m"
          limits:
            memory: "256Mi"
            cpu: "200m"
        livenessProbe:
          httpGet:
            path: /health
            port: 8080
          initialDelaySeconds: 30
          periodSeconds: 10
```

### Service

```yaml
apiVersion: v1
kind: Service
metadata:
  name: app-service
spec:
  selector:
    app: myapp
  ports:
  - port: 80
    targetPort: 8080
  type: ClusterIP
```

### ConfigMap & Secrets

```yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: app-config
data:
  LOG_LEVEL: "info"
  MAX_CONNECTIONS: "100"
---
apiVersion: v1
kind: Secret
metadata:
  name: app-secret
type: Opaque
stringData:
  DATABASE_URL: "postgresql://user:pass@db:5432/app"
```

## Best Practices

- Use labels consistently
- Set resource requests and limits
- Implement health checks (liveness, readiness, startup probes)
- Use ConfigMaps and Secrets for configuration
- Implement horizontal pod autoscaling (HPA)
- Use namespaces for environment separation

## Resources

- [Kubernetes Docs](https://kubernetes.io/docs/)
- [Kubernetes Best Practices](https://kubernetes.io/docs/concepts/configuration/overview/)

---
> Source: [kinhluan/skills](https://github.com/kinhluan/skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->

