istio 常见问题解决

1.Command error output: xtables parameter problem: iptables-restore: unable to initialize table 'nat'

   Failed to execute: iptables-restore --noflush /tmp/iptables-rules-xxxxxxxxxx, exit status 2

 解决参考:https://github.com/istio/istio/issues/23009

      https://www.suse.com/support/kb/doc/?id=000020241

   解决方案1:

istioctl manifest apply \
  --set components.cni.enabled=true \

   解决方案2:

  centos8及一些红帽系Linux使用iptables-nftables,不能使用iptables命令查看pod中的规则。istio 通过使用 iptables 添加 nat 规则来拦截流量。Linux 应该启用 netfix linux 内核模块。在所有主机中执行命令以启用。

cat >/etc/modules-load.d/99-istio-modules.conf <<EOF
br_netfilter
nf_nat
nf_nat_redirect
xt_REDIRECT
xt_owner
iptable_nat
iptable_mangle
iptable_filter
EOF
reboot

2.unable to proxy Istiod pods. Make sure your Kubernetes API server has access to the Istio control plane through 8080 port

  解决参考:https://github.com/kiali/kiali/issues/4679

  似乎 kubelet 依赖于socat进行端口转发:kubernetes/kubernetes#26093并且 kiali 依赖于端口转发来与 istiod 通信,因此运行 istiod pod 的节点需要安装 socat。

  解决方案:

yum install socat -y

 

posted @ 2023-03-02 20:35  SpringCore  阅读(676)  评论(0编辑  收藏  举报