HOTFIX: Make healthcheck UDP & remove TCP endpoint

This commit is contained in:
Layla 2020-05-02 00:02:21 -04:00
parent f4e1d3a3b8
commit 11a41fdca7
No known key found for this signature in database
GPG Key ID: A494D9357BA1BE31
3 changed files with 2 additions and 15 deletions

View File

@ -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:

View File

@ -36,9 +36,6 @@ Resources:
- HostPort: 0
ContainerPort: 7777
Protocol: udp
- HostPort: 0
ContainerPort: 80
Protocol: tcp
LogConfiguration:
LogDriver: awslogs
Options:

View File

@ -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