腾讯云容器集群:节点可以访问公网,节点内的pod无法访问公网

腾讯云容器集群:节点可以访问公网,节点内的pod无法访问公网

shell 复制代码
curl https://www.baidu.com/index.htm

参考链接:https://cloud.tencent.com/document/product/457/50356
sysctl -a|grep net.ipv4.conf.all.rp_filter
sysctl -a|grep net.ipv4.conf.eth0.rp_filter
# net.ipv4.conf.all.rp_filter = 1
# net.ipv4.conf.eth0.rp_filter = 2

修改为:
sysctl -w net.ipv4.conf.all.rp_filter=0
sysctl -w net.ipv4.conf.eth0.rp_filter=0


存量节点同步网卡安全组设置的方法:https://cloud.tencent.com/document/product/457/50360

kubectl annotate node 10.20.1.20 --overwrite tke.cloud.tencent.com/disable-node-eni-security-groups="yes"
# 第一步执行完后等待2-5s
kubectl annotate node 10.20.1.20 --overwrite tke.cloud.tencent.com/disable-node-eni-security-groups="no"

连接集群:https://cloud.tencent.com/document/product/457/32191#846ac805-761e-4405-937c-052027e5580a
在线获取kubeconfig配置:https://cloud.tencent.com/document/api/457/48149


# 查看节点
kubectl get node
kubectl get node -o wide
相关推荐
AzusaFighting几秒前
ROS 2 Jazzy (Ubuntu Noble 24.04)部署
linux·运维·ubuntu
cyber_两只龙宝8 分钟前
【Docker】搭建企业级私有harbor仓库全流程详解
linux·运维·docker·云原生·容器
Yokon_D12 分钟前
腾讯云+Astrbot个人AI部署,接入QQ机器人
云计算·腾讯云
_Emma_23 分钟前
[QCOM] Linux下qcom camera驱动框架分析
linux·驱动开发
浮若于心24 分钟前
WSL2 Ubuntu 占用 C 盘空间清理指南
linux·c语言·ubuntu
请输入蚊子32 分钟前
《操作系统真象还原》 第九章 线程
linux·操作系统·bochs·操作系统真像还原
bai_lan_ya35 分钟前
Linux 输入系统应用编程完全指南
linux·运维·服务器
UP_Continue1 小时前
Linux--UDP/TCP客户端与服务端模拟实现计算器原理
linux·tcp/ip·udp
FightingHg2 小时前
和claude、openclaw交互的一些杂七杂八记录
linux·运维·服务器
深念Y2 小时前
魅蓝Note5 Root + 改内核激活命名空间:让Docker跑在安卓上
android·linux·服务器·docker·容器·root·服务