HOTFIX: Make healthcheck UDP & remove TCP endpoint
This commit is contained in:
parent
f4e1d3a3b8
commit
11a41fdca7
@ -37,10 +37,8 @@ Resources:
|
|||||||
NlbTargetGroup:
|
NlbTargetGroup:
|
||||||
Type: AWS::ElasticLoadBalancingV2::TargetGroup
|
Type: AWS::ElasticLoadBalancingV2::TargetGroup
|
||||||
Properties:
|
Properties:
|
||||||
HealthCheckPort: 80
|
|
||||||
HealthCheckProtocol: TCP
|
|
||||||
Port: 7777
|
Port: 7777
|
||||||
Protocol: TCP_UDP
|
Protocol: UDP
|
||||||
TargetGroupAttributes:
|
TargetGroupAttributes:
|
||||||
- Key: deregistration_delay.timeout_seconds
|
- Key: deregistration_delay.timeout_seconds
|
||||||
Value: '20'
|
Value: '20'
|
||||||
@ -57,7 +55,7 @@ Resources:
|
|||||||
TargetGroupArn: !Ref NlbTargetGroup
|
TargetGroupArn: !Ref NlbTargetGroup
|
||||||
LoadBalancerArn: !Ref PublicNLB
|
LoadBalancerArn: !Ref PublicNLB
|
||||||
Port: 7777
|
Port: 7777
|
||||||
Protocol: TCP_UDP
|
Protocol: UDP
|
||||||
|
|
||||||
|
|
||||||
Outputs:
|
Outputs:
|
||||||
|
@ -36,9 +36,6 @@ Resources:
|
|||||||
- HostPort: 0
|
- HostPort: 0
|
||||||
ContainerPort: 7777
|
ContainerPort: 7777
|
||||||
Protocol: udp
|
Protocol: udp
|
||||||
- HostPort: 0
|
|
||||||
ContainerPort: 80
|
|
||||||
Protocol: tcp
|
|
||||||
LogConfiguration:
|
LogConfiguration:
|
||||||
LogDriver: awslogs
|
LogDriver: awslogs
|
||||||
Options:
|
Options:
|
||||||
|
@ -9,12 +9,4 @@ RUN cd /dt; /dt/build.sh
|
|||||||
|
|
||||||
CMD ["/dt/builds/server.out"]
|
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
|
EXPOSE 7777/udp
|
Reference in New Issue
Block a user