If I understood the docs correct, it appears a EKS may restart containers if unable to connect to it via an open port?
What if my container is running a worker job? Do I still need to define the port settings in terraform?
Do I need to do something like example below? Or can I just remove the Ports configuration attribute?
min_running_instances = 1
max_running_instances = 1
ports = [
{
internal_port = 80
external_port = 80
protocol = "HTTP"
publicly_accessible = false
}
]