CodexBloom - Programming Q&A Platform

OCI Container Instance Networking implementing VCN Security Lists and Load Balancer Integration

👀 Views: 61 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-10
oci container-instances load-balancer json

I keep running into I'm working with important issues with networking when trying to integrate my OCI Container Instance with an OCI Load Balancer. I've set up my VCN and associated security lists, but my container instance want to receive traffic from the load balancer, resulting in a 'Connection Timed Out' behavior. Here's what I've done: 1. Created a VCN with a public subnet. 2. Configured a Load Balancer to front the container instance, ensuring it is pointing to the correct backend set. 3. My security lists allow ingress traffic on ports 80 and 443 from the load balancer's source CIDR. 4. I've verified that the container instance is running and accessible internally within the VCN. However, when I try to access the service through the load balancer's public IP, I get: ``` HTTP/1.1 504 Gateway Timeout ``` My container is defined as follows: ```json { "image": "my-container-image:latest", "name": "my-container-instance", "cpuCount": 1, "memoryInGBs": 1 } ``` I've also checked the health check configuration on the Load Balancer, which is set to use a simple HTTP GET on the root path, but it seems to unexpected result. I've tried adjusting the health check interval and timeout settings without any success. Could there be additional configurations needed for the networking setup, or is there a common oversight when connecting OCI Container Instances to Load Balancers? Any insights on troubleshooting this would be greatly appreciated! I'm coming from a different tech stack and learning Json. Could this be a known issue?