From bcbad46784e22effe2989c30606a444e0b42c5ba Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 14 Nov 2018 14:35:21 +0100 Subject: [PATCH] Add CONFIG_IP_VS_PROTO_TCP, CONFIG_IP_VS_PROTO_UDP, IP_NF_TARGET_REDIRECT to check-config.sh On kernels without this options set, publishing ports for swarm services does not work, making the published port not accessible ("connection refused") Thanks to Wenbo Wang for reporting, and Tianon for finding this. Signed-off-by: Sebastiaan van Stijn (cherry picked from commit 44e1c6ce81ff62c76ba630caf16a73922950abc3) Signed-off-by: Sebastiaan van Stijn Upstream-commit: 25bec4665b6f011e52f7b2765ba1579c7430481d Component: engine --- components/engine/contrib/check-config.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/engine/contrib/check-config.sh b/components/engine/contrib/check-config.sh index 88eb8aa753..fcbd874ff2 100755 --- a/components/engine/contrib/check-config.sh +++ b/components/engine/contrib/check-config.sh @@ -265,8 +265,11 @@ flags=( CGROUP_HUGETLB NET_CLS_CGROUP $netprio CFS_BANDWIDTH FAIR_GROUP_SCHED RT_GROUP_SCHED + IP_NF_TARGET_REDIRECT IP_VS IP_VS_NFCT + IP_VS_PROTO_TCP + IP_VS_PROTO_UDP IP_VS_RR ) check_flags "${flags[@]}"