From 11a41fdca791f0eb563ed5453da5c4c1da23f91a Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Sat, 2 May 2020 00:02:21 -0400 Subject: [PATCH] HOTFIX: Make healthcheck UDP & remove TCP endpoint --- infrastructure/cloudformation/dt/load_balancing.yaml | 6 ++---- infrastructure/cloudformation/dt/task.yaml | 3 --- server/Dockerfile | 8 -------- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/infrastructure/cloudformation/dt/load_balancing.yaml b/infrastructure/cloudformation/dt/load_balancing.yaml index f923999..3c4a1bf 100644 --- a/infrastructure/cloudformation/dt/load_balancing.yaml +++ b/infrastructure/cloudformation/dt/load_balancing.yaml @@ -37,10 +37,8 @@ Resources: NlbTargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: - HealthCheckPort: 80 - HealthCheckProtocol: TCP Port: 7777 - Protocol: TCP_UDP + Protocol: UDP TargetGroupAttributes: - Key: deregistration_delay.timeout_seconds Value: '20' @@ -57,7 +55,7 @@ Resources: TargetGroupArn: !Ref NlbTargetGroup LoadBalancerArn: !Ref PublicNLB Port: 7777 - Protocol: TCP_UDP + Protocol: UDP Outputs: diff --git a/infrastructure/cloudformation/dt/task.yaml b/infrastructure/cloudformation/dt/task.yaml index 498f09b..0de2430 100644 --- a/infrastructure/cloudformation/dt/task.yaml +++ b/infrastructure/cloudformation/dt/task.yaml @@ -36,9 +36,6 @@ Resources: - HostPort: 0 ContainerPort: 7777 Protocol: udp - - HostPort: 0 - ContainerPort: 80 - Protocol: tcp LogConfiguration: LogDriver: awslogs Options: diff --git a/server/Dockerfile b/server/Dockerfile index ea72233..6822f5b 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -9,12 +9,4 @@ RUN cd /dt; /dt/build.sh CMD ["/dt/builds/server.out"] -# Setup status endpoint -RUN dnf install nginx -y - -COPY nginx.conf /etc/nginx/conf.d/nginx.conf - -RUN systemctl enable nginx.service - -EXPOSE 80/tcp EXPOSE 7777/udp \ No newline at end of file