File contents Kubernetes Deployment
Kubernetes Deployment
# k8s/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: video-api
spec:
replicas: 3
selector:
matchLabels:
app: video-api
template:
metadata:
labels:
app: video-api
spec:
containers:
- name: api
image: video-platform/api:latest
ports:
- containerPort: 8000
env:
- name: REDIS_HOST
value: redis-service
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: video-worker
spec:
replicas: 10
selector:
matchLabels:
app: video-worker
template:
metadata:
labels:
app: video-worker
spec:
containers:
- name: worker
image: video-platform/worker:latest
env:
- name: REDIS_HOST
value: redis-service
- name: KLINGAI_API_KEY
valueFrom:
secretKeyRef:
name: klingai-secrets
key: api-key
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "200m"
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: video-worker-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: video-worker
minReplicas: 5
maxReplicas: 50
metrics:
- type: External
external:
metric:
name: redis_queue_length
target:
type: AverageValue
averageValue: 10
1 --- 2 name: 2237-kubernetes-deployment-1a2d7a84 3 description: Kubernetes Deployment 4 --- 5 # Kubernetes Deployment 6 7 ## Kubernetes Deployment 8 9 ```yaml 10 # k8s/deployment.yaml 11 apiVersion: apps/v1 12 kind: Deployment 13 metadata: 14 name: video-api 15 spec: 16 replicas: 3 17 selector: 18 matchLabels: 19 app: video-api 20 template: 21 metadata: 22 labels: 23 app: video-api 24 spec: 25 containers: 26 - name: api 27 image: video-platform/api:latest 28 ports: 29 - containerPort: 8000 30 env: 31 - name: REDIS_HOST 32 value: redis-service 33 resources: 34 requests: 35 memory: "256Mi" 36 cpu: "250m" 37 limits: 38 memory: "512Mi" 39 cpu: "500m" 40 --- 41 apiVersion: apps/v1 42 kind: Deployment 43 metadata: 44 name: video-worker 45 spec: 46 replicas: 10 47 selector: 48 matchLabels: 49 app: video-worker 50 template: 51 metadata: 52 labels: 53 app: video-worker 54 spec: 55 containers: 56 - name: worker 57 image: video-platform/worker:latest 58 env: 59 - name: REDIS_HOST 60 value: redis-service 61 - name: KLINGAI_API_KEY 62 valueFrom: 63 secretKeyRef: 64 name: klingai-secrets 65 key: api-key 66 resources: 67 requests: 68 memory: "128Mi" 69 cpu: "100m" 70 limits: 71 memory: "256Mi" 72 cpu: "200m" 73 --- 74 apiVersion: autoscaling/v2 75 kind: HorizontalPodAutoscaler 76 metadata: 77 name: video-worker-hpa 78 spec: 79 scaleTargetRef: 80 apiVersion: apps/v1 81 kind: Deployment 82 name: video-worker 83 minReplicas: 5 84 maxReplicas: 50 85 metrics: 86 - type: External 87 external: 88 metric: 89 name: redis_queue_length 90 target: 91 type: AverageValue 92 averageValue: 10 93 ```
tools-only/X-Skills/tree/main/content-creation/2237-kubernetes-deployment_1a2d7a84 commit cbd1398a41
Frequently asked questions How do I install the 2237 Kubernetes Deployment 1a2d7a84 skill? Run npx skillmds@latest add tools-only/2237-kubernetes-deployment-1a2d7a84 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 2237 Kubernetes Deployment 1a2d7a84 skill do? Kubernetes Deployment It is listed under DevOps & Infra on SkillMD.
Is 2237 Kubernetes Deployment 1a2d7a84 safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with 2237 Kubernetes Deployment 1a2d7a84? 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 2237 Kubernetes Deployment 1a2d7a84 free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published 2237 Kubernetes Deployment 1a2d7a84? tools-only (@tools-only) published this skill. Their other Agent Skills are listed on their SkillMD profile.