ตัวสร้าง Kubernetes Manifest
สร้าง Kubernetes manifests สำหรับ Deployments, Services, ConfigMaps และ Secrets กำหนด replicas, images, resources, probes และ ports
Loading tool...
ตัวสร้าง Kubernetes Manifest คืออะไร?
Kubernetes Manifest Generator เป็นเครื่องมือออนไลน์ฟรีที่สร้าง K8s YAML manifests ที่พร้อมใช้งาน กำหนด Deployments, Services, ConfigMaps และ Secrets ผ่าน UI โดยไม่ต้องรู้ YAML syntax
ประโยชน์หลัก
- สร้าง K8s YAML ที่ถูกต้องโดยไม่มี indentation หรือ syntax errors
- UI สำหรับ Kubernetes resources ที่ซับซ้อน
- เชื่อม Service selectors กับ Deployment labels อัตโนมัติ
- เข้ารหัส base64 อัตโนมัติสำหรับ Secret data
- Multi-document output สำหรับ deploy ด้วยคำสั่งเดียว
กรณีการใช้งาน
- •Deploy แอปพลิเคชันที่ containerize แล้วไปยัง Kubernetes clusters
- •สร้าง manifests สำหรับ CI/CD pipelines
- •เรียนรู้นิยาม Kubernetes resources
- •ทำ prototype K8s configurations ก่อน production
- •กำหนด manifest templates มาตรฐานสำหรับทีม
วิธีใช้ Kubernetes Manifest Generator
- เลือก resources: เปิด resources ที่ต้องการ: Deployment, Service, ConfigMap และ/หรือ Secret
- ตั้งค่า Deployment: กำหนดชื่อ app, replicas, container image, port, resource limits และ probes
- ตั้งค่า Service: เลือกประเภท Service (ClusterIP, NodePort, LoadBalancer) และ map ports
- นำไปใช้: คัดลอกหรือดาวน์โหลด manifest แล้วใช้คำสั่ง: kubectl apply -f manifest.yaml
คุณสมบัติหลัก
- สร้าง Deployment, Service, ConfigMap และ Secret manifests
- Resource requests และ limits (CPU และ memory) สำหรับแต่ละ container
- Liveness และ readiness HTTP probes สำหรับ health checking
- Service types 3 แบบ: ClusterIP, NodePort และ LoadBalancer
- เข้ารหัส base64 อัตโนมัติสำหรับ Kubernetes Secret data
- Multi-document YAML output — ใช้กับ kubectl apply -f ได้เลย
คำถามที่พบบ่อย
Kubernetes Deployment คืออะไร?
Deployment จัดการกลุ่มของ Pods ที่เหมือนกัน ให้การอัปเดตแบบ declarative, scaling และ rollbacks คุณกำหนดสถานะที่ต้องการ (image, replicas, ports) แล้ว Kubernetes จะรักษาไว้
Resource requests และ limits คืออะไร?
Requests รับประกัน CPU/memory ขั้นต่ำสำหรับ container. Limits กำหนดสูงสุด Scheduler ใช้ requests สำหรับการจัดวาง ถ้า container เกิน memory limit จะถูก kill (OOMKilled)
Liveness และ readiness probes ต่างกันอย่างไร?
Liveness probe บอกว่า container ปกติหรือไม่ — ถ้าล้มเหลว container จะ restart. Readiness probe บอกว่า container พร้อมรับ traffic หรือไม่ — ถ้าล้มเหลว Pod จะถูกเอาออกจาก Service load balancer
ทำไม Secret values ต้องเข้ารหัส base64?
Kubernetes เก็บ Secret data เป็น base64-encoded strings ไม่ใช่การเข้ารหัส นี่เป็นกลไกการขนส่งไม่ใช่มาตรการรักษาความปลอดภัย สำหรับ production ควรใช้ secrets manager เช่น Vault หรือ cloud KMS