File contents Kubernetes Deployment
Kubernetes Deployment
Deployment Manifest
# 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
# 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
1 --- 2 name: 2712-kubernetes-deployment-c17e3416 3 description: Kubernetes Deployment 4 --- 5 # Kubernetes Deployment 6 7 ## Kubernetes Deployment 8 9 ### Deployment Manifest 10 ```yaml 11 # k8s/deployment.yaml 12 apiVersion: apps/v1 13 kind: Deployment 14 metadata: 15 name: openrouter-service 16 spec: 17 replicas: 3 18 selector: 19 matchLabels: 20 app: openrouter-service 21 template: 22 metadata: 23 labels: 24 app: openrouter-service 25 spec: 26 containers: 27 - name: api 28 image: your-registry/openrouter-api:latest 29 ports: 30 - containerPort: 8000 31 env: 32 - name: OPENROUTER_API_KEY 33 valueFrom: 34 secretKeyRef: 35 name: openrouter-secrets 36 key: api-key 37 - name: REDIS_URL 38 value: redis://redis-service:6379 39 resources: 40 requests: 41 memory: "256Mi" 42 cpu: "250m" 43 limits: 44 memory: "512Mi" 45 cpu: "500m" 46 livenessProbe: 47 httpGet: 48 path: /health 49 port: 8000 50 initialDelaySeconds: 10 51 periodSeconds: 30 52 readinessProbe: 53 httpGet: 54 path: /ready 55 port: 8000 56 initialDelaySeconds: 5 57 periodSeconds: 10 58 --- 59 apiVersion: v1 60 kind: Service 61 metadata: 62 name: openrouter-service 63 spec: 64 selector: 65 app: openrouter-service 66 ports: 67 - port: 80 68 targetPort: 8000 69 type: ClusterIP 70 ``` 71 72 ### Horizontal Pod Autoscaler 73 ```yaml 74 # k8s/hpa.yaml 75 apiVersion: autoscaling/v2 76 kind: HorizontalPodAutoscaler 77 metadata: 78 name: openrouter-hpa 79 spec: 80 scaleTargetRef: 81 apiVersion: apps/v1 82 kind: Deployment 83 name: openrouter-service 84 minReplicas: 3 85 maxReplicas: 20 86 metrics: 87 - type: Resource 88 resource: 89 name: cpu 90 target: 91 type: Utilization 92 averageUtilization: 70 93 - type: Resource 94 resource: 95 name: memory 96 target: 97 type: Utilization 98 averageUtilization: 80 99 ```
tools-only/X-Skills/tree/main/development/devops/2712-kubernetes-deployment_c17e3416 commit 994166b63d
Frequently asked questions How do I install the 2712 Kubernetes Deployment C17e3416 skill? Run npx skillmds@latest add tools-only/2712-kubernetes-deployment-c17e3416 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the 2712 Kubernetes Deployment C17e3416 skill do? Kubernetes Deployment It is listed under DevOps & Infra on SkillMD.
Is 2712 Kubernetes Deployment C17e3416 safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with 2712 Kubernetes Deployment C17e3416? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is 2712 Kubernetes Deployment C17e3416 free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published 2712 Kubernetes Deployment C17e3416? tools-only (@tools-only) published this skill. Their other Agent Skills are listed on their SkillMD profile.