Skip to content

Application Port Incorrect

กรณีที่ทำการ Deploy ไปแล้วเจอ Error 502 Bad Gateway สามารถเกิดขึ้นได้จากเข้า port ผิด สามารถตรวจเช็คได้จาก ตัวอย่าง ต่อไปนี้

จากรูปเมื่อเปิด url จาก opstella พบว่าขึ้น Error 502 Bad Gateway

portIssue

ลองเข้า pod จากนั้นพิมพ์คำสั่ง

netstat -tupln

จะปรากฏว่า port ของ pod คือหมายเลขอะไร

portIssue

จากนั้นไป update เพื่อดูว่า port ตรงกัน หรือไม่

portIssue

หากพบว่า port ไม่ตรงกัน ให้เปลี่ยนให้ตรงกัน กับ pod

portIssue

สามารถเข้าใช้งานได้ปกติ

portIssue

We build Enterprise Platform Engineering to digitalized transform your organization into a DevSecOps culture.