-
Notifications
You must be signed in to change notification settings - Fork 0
[Issue] K8s Pod (Java App) ไม่พร้อมใช้งาน: Cannot connect to DB #8
Description
ประเภทของปัญหา (Issue Category)
Kubernetes-Runtime
การตรวจสอบเบื้องต้น (Pre-Check)
- ฉันได้ค้นหา Issue ที่คล้ายกันแล้ว แต่ไม่พบ
- ฉันได้ลองทำซ้ำขั้นตอนแล้ว และปัญหายังคงอยู่
ขั้นตอนการเกิดปัญหา หรือ Log ที่เกี่ยวข้อง (Steps to Reproduce / Relevant Log)
แอปพลิเคชัน Java (Spring Boot) ใน Pod ของ Deployment 'scbconnect-api' ไม่สามารถสตาร์ทขึ้นได้ครับ (CrashLoopBackOff)
ทำการ Deploy Image ใหม่ของ 'scbconnect-api'
สถานะของ Pod เปลี่ยนเป็น 'CrashLoopBackOff'
ตรวจสอบ Log พบ Error เกี่ยวกับการเชื่อมต่อ Database (PostgreSQL)
Relevant Log Snippet: ครับ
2025-10-09 09:30:15.545 ERROR 1 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Failed to initialize pool: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
2025-10-09 09:30:15.548 ERROR 1 --- [ main] o.s.b.d.LoggingFailureAnalysisReporters :
APPLICATION FAILED TO START
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason:
Database connection refused.
Project/Application ที่ได้รับผลกระทบ (เช่น scbconnect, j4u, system-wide)
scbconnect
Project/Application ที่ได้รับผลกระทบ (เช่น scbconnect, j4u, system-wide)
scbconnect