@@ -82,8 +82,10 @@ func appendK3sServerDiagnostics(ctx context.Context, buf *bytes.Buffer, clusterN
8282 continue
8383 }
8484 appendCommandOutput (ctx , buf , "docker exec " + nodeName + " ps" , "docker" , []string {"exec" , nodeName , "sh" , "-c" , "ps auxww" }, []string {"DOCKER_CONTEXT=" + dockerContext })
85- appendCommandOutput (ctx , buf , "docker exec " + nodeName + " ss " , "docker" , []string {"exec" , nodeName , "sh" , "-c" , "ss -lntp || netstat -lntp " }, []string {"DOCKER_CONTEXT=" + dockerContext })
85+ appendCommandOutput (ctx , buf , "docker exec " + nodeName + " sockets " , "docker" , []string {"exec" , nodeName , "sh" , "-c" , "ss -lntp || netstat -lnt " }, []string {"DOCKER_CONTEXT=" + dockerContext })
8686 appendCommandOutput (ctx , buf , "docker exec " + nodeName + " cgroup" , "docker" , []string {"exec" , nodeName , "sh" , "-c" , "cat /proc/1/cgroup && echo && mount | grep cgroup" }, []string {"DOCKER_CONTEXT=" + dockerContext })
87+ appendCommandOutput (ctx , buf , "docker exec " + nodeName + " env" , "docker" , []string {"exec" , nodeName , "sh" , "-c" , "env | sort" }, []string {"DOCKER_CONTEXT=" + dockerContext })
88+ appendCommandOutput (ctx , buf , "docker exec " + nodeName + " entrypoint" , "docker" , []string {"exec" , nodeName , "sh" , "-c" , "sed -n '1,200p' /bin/k3d-entrypoint.sh" }, []string {"DOCKER_CONTEXT=" + dockerContext })
8789 appendCommandOutput (ctx , buf , "docker exec " + nodeName + " k3s files" , "docker" , []string {"exec" , nodeName , "sh" , "-c" , "find /var/lib/rancher/k3s -maxdepth 3 -type f 2>/dev/null | sort" }, []string {"DOCKER_CONTEXT=" + dockerContext })
8890 appendCommandOutput (ctx , buf , "docker exec " + nodeName + " k3s logs" , "docker" , []string {"exec" , nodeName , "sh" , "-c" , "for f in /var/log/k3s.log /var/lib/rancher/k3s/agent/containerd/containerd.log /var/lib/rancher/k3s/server/logs/*; do if [ -f \" $f\" ]; then echo \" == $f ==\" ; tail -n 200 \" $f\" ; echo; fi; done" }, []string {"DOCKER_CONTEXT=" + dockerContext })
8991 appendCommandOutput (ctx , buf , "docker exec " + nodeName + " kubectl get pods" , "docker" , []string {"exec" , nodeName , "kubectl" , "get" , "pods" , "-A" , "-o" , "wide" }, []string {"DOCKER_CONTEXT=" + dockerContext })
0 commit comments