在Istio 中,istio-init是一个 Init Container,负责设置 Pod 的网络规则(如iptables规则),以便将流量重定向到istio-proxy(Envoy 代理)。 生命周期: Init Container 在 Pod 的主容器(如应用容器和istio-proxy)启动之前运行。 所有Init Container 必须成功完成后,Pod 的主容器才会启动。 如果Init Container 失败,Pod ...
跟这个 issue 基本一致 github.com/istio/istio/ 直接原因: 这种情况应该通常是清理了已退出的 istio-init 容器,导致 k8s 检测到 pod 关联的容器不在了,然后会重新拉起被删除的容器,而 istio-init 的执行不可重入,因为之前已创建了 iptables 规则,导致后拉起的 istio-init 执行 iptables 失败而 crash。 根因...
kubectl get pods '-o=custom-columns=NAME:.metadata.name,CONTAINERS:.spec.containers[*].name,INITCONTAINERS:.spec.initContainers[*].name' -n coligotest-1 NAME CONTAINERS INITCONTAINERS s1-lxgrs-1-deployment-55bb77c77b-tl2j7 user-container,queue-proxy,istio-proxy istio-validation Affected prod...