Closed ufocjm closed 1 year ago
很有可能,因为安装k8s的前提是要在机子上运行如下命令
# 临时关闭
swapoff -a
# 永久关闭
sed -ri 's/.*swap.*/#&/' /etc/fstab
systemctl stop firewalld.service
systemctl disable firewalld.service
# 临时关闭
setenforce 0
# 永久禁用
sed -i 's/^SELINUX=enforcing$/SELINUX=disabled/' /etc/selinux/config
cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf
br_netfilter
EOF
cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
EOF
# 手动加载所有的配置文件
sysctl --system
不确定会不会是这些问题导致的
@ufocjm 根据你的描述,是有可能与 k8s 的配置有关。具体我不太清楚,你再自己查找一下原因。
@hwdsl2 好的,谢谢
@ufocjm 你好!根据你的描述,原先的问题已解决。但没有理解你所说的 "除了22端口,也就是ssh端口以外,都连不上这台机子了,要重启电脑才可以"。你可以开一个新的 Issue 并详细说一下。该问题可能与你的 Docker 主机 IPTables 防火墙配置有关。
Originally posted by @hwdsl2 in https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/356#issuecomment-1474742790