k8s报错:WARNING: IPv4 forwarding is disabled. Networking will not work.
2021年10月10日学习compose安装Django时报的错误
一、故障描述
看标出来的错误,当时因为是警告我就错过了,找了半天pip源
---> [Warning] IPv4 forwarding is disabled. Networking will not work.
二、解决方案
编辑配置文件,添加如下代码
vi /usr/lib/sysctl.d/00-system.conf
net.ipv4.ip_forward=1
#重启网卡
systemctl restart network
三、参考资料
今天的学习是为了以后的工作更加的轻松!