端口转发遇Error from server (NotFound): services "argocd-server" not found问题求助
先确认ArgoCD默认命名空间状态及资源:
执行命令:kubectl get all -n argocd
如果提示命名空间不存在,先创建:kubectl create namespace argocd清理残留并重新执行完整安装:
若之前安装中途中断,先删除残留资源:kubectl delete -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
再重新执行官方安装命令:kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
等待所有Pod进入Running状态后,检查服务是否存在:kubectl get svc -n argocd排查安装失败细节:
若重新安装后仍无argocd-server服务,先列出命名空间下的Pod:kubectl get pods -n argocd
对状态异常的Pod查看启动详情:kubectl describe pods <异常Pod名称> -n argocd
重点关注Events区域,排查是否存在镜像拉取失败、权限不足等问题。确认kubectl操作上下文:
执行kubectl config current-context,确保当前操作的是目标Kubernetes集群,避免误操作到其他环境。
内容的提问来源于stack exchange,提问作者CloudLearning

