HOTFIX: Make healthcheck UDP & remove TCP endpoint
This commit is contained in:
		@ -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:
 | 
			
		||||
 | 
			
		||||
@ -36,9 +36,6 @@ Resources:
 | 
			
		||||
        - HostPort: 0
 | 
			
		||||
          ContainerPort: 7777
 | 
			
		||||
          Protocol: udp
 | 
			
		||||
        - HostPort: 0
 | 
			
		||||
          ContainerPort: 80
 | 
			
		||||
          Protocol: tcp
 | 
			
		||||
        LogConfiguration:
 | 
			
		||||
          LogDriver: awslogs
 | 
			
		||||
          Options:
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user