Kubernetes manifest generator prompt
Generate a Kubernetes Deployment and Service YAML with resource limits, readiness/liveness probes, and sane defaults.
بواسطة Ahmed Eid0 نسخة
متى تستخدم هذا البرومبت
- When deploying a containerized app to Kubernetes for the first time.
- When adding health checks or resource limits to an existing deployment.
- When standardizing manifests across multiple services.
نص البرومبت
Write a Kubernetes manifest (Deployment + Service) for a {{language}} app using {{framework}}, including resource limits, health checks, and {{focus}}.
{{CLIPBOARD}}
{{language}}{{framework}}{{focus}}{{CLIPBOARD}}الكتلة {{CLIPBOARD}} تُستبدل تلقائياً بما نسخته قبل الضغط على «نسخ».
املأ المتغيرات ثم انسخ
Write a Kubernetes manifest (Deployment + Service) for a {{language}} app using {{framework}}, including resource limits, health checks, and {{focus}}.
كيف تستخدمه
- انسخ البرومبت بالزر أو املأ المتغيرات أولاً.
- الصقه في ChatGPT أو Claude أو Gemini.
- عدّل النتيجة أو أعد الطلب بتغيير المتغيرات.
مثال على النتيجة
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-service
spec:
replicas: 2
template:
spec:
containers:
- name: api
image: my-registry/api:latest
resources:
limits: { cpu: '500m', memory: '256Mi' }
readinessProbe:
httpGet: { path: /health, port: 8080 }نصائح للاستخدام
- Specify replica count and expected traffic so resource limits aren't arbitrary.
- Mention your ingress/load balancer setup if the Service needs a specific type.
- Ask for a Helm chart version if you manage multiple environments (dev/staging/prod).
أسئلة شائعة
- Will it include an Ingress resource too?
- Ask for one explicitly with your domain and TLS requirements; the default focuses on Deployment and Service.
- Can it convert this into a Helm chart?
- Yes, ask it to templatize the values (replicas, image tag, resources) into a Helm chart afterward.