Back to skills
SKILL.md
2712 Kubernetes Deployment C17e3416
ASecurity```yaml apiVersion: apps/v1 kind: Deployment metadata: name: openrouter-service spec: replicas: 3 selector: matchLabels: app: openrouter-service template: metadata: labels: app: openrouter-service spec: containers: - name: api image: your-registry/openrouter-api:latest ports: - containerPort: 8000 env: - name: OPENROUTER_API_KEY valueFrom: secretKeyRef: name: openroute
- 9 stars
- 0 votes
- 0 copies
- 0 views
- Added October 11, 2026
Works with
Security analysis
100/100npx -y skills add tools-only/X-Skills --skill 2712-kubernetes-deployment_c17e3416 --agent claude-codeAre you the author of 2712 Kubernetes Deployment C17e3416?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-2712-kubernetes-deployment-c17e3416)# Kubernetes Deployment
## Kubernetes Deployment
### Deployment Manifest
```yaml
# k8s/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: openrouter-service
spec:
replicas: 3
selector:
matchLabels:
app: openrouter-service
template:
metadata:
labels:
app: openrouter-service
spec:
containers:
- name: api
image: your-registry/openrouter-api:latest
ports:
- containerPort: 8000
env:
- name: OPENROUTER_API_KEY
valueFrom:
secretKeyRef:
name: openrouter-secrets
key: api-key
- name: REDIS_URL
value: redis://redis-service:6379
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /ready
port: 8000
initialDelaySeconds: 5
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: openrouter-service
spec:
selector:
app: openrouter-service
ports:
- port: 80
targetPort: 8000
type: ClusterIP
```
### Horizontal Pod Autoscaler
```yaml
# k8s/hpa.yaml
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: openrouter-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: openrouter-service
minReplicas: 3
maxReplicas: 20
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80
```Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.