迁移项目时,部署k8s,kubectl get po -n kube-system

  • Choerodon平台版本: 0.6.0

  • 遇到问题的执行步骤:

  • 文档地址:

  • 环境信息(如:节点信息):

  • 报错日志:

  • 原因分析:

    提出您分析问题的过程,以便我们能更准确的找到问题所在
    The connection to the server localhost:8080 was refused - did you specify the right host or port?

  • 疑问:

    提出您对于遇到和解决该问题时的疑问
    部署按照猪吃鱼中的迁移手册迁移项目时,部署k8s,执行到kubectl get po -n kube-system时报错:error: the server doesn’t have a resource type “po”
    然后修改命令为:kubectl get pod -n kube-system
    继续报错:The connection to the server localhost:8080 was refused - did you specify the right host or port?
    然后查找资料说是:端口代理有问题,然后开启端口代理后还是没有解决问题,特来请教,谢谢

请在master节点执行该命名

我就是单节点的集群呀

你搭建集群完成后 是否有报错信息?

安装猪吃鱼文档做的,没报错信息

请将kubeadm-ansible/inventory/hosts文件内容展示一下

按照你这个配置安装之后一定会报错的,请将hostname修改为小写后reset集群,再重新安装。谢谢。

好的,谢谢了,怪我没仔细看清细节


这个并不是全部都在running,不知道对不对?

请问你执行了下面语句吗?

ansible-playbook -i inventory/hosts reset.yml

image
执行了的呀

你还有这一步没有做

这一步做了,我重新部署了一下,报错了


请问一下为什么连接不上呀?

请问一下:


一直在ContainerCreating状态中,大概要等好久?

你这个是阿里云的机器吗?

腾讯云的机器

但是举例是用的阿里云的机子举的例哒,腾讯云就不能按这个来做了啊。腾讯云请按 私有云安装示例操作。

谢谢啦,我一直以为不管那个云都是服务器,:joy:,我明天再弄弄,谢谢:pray:!


你好,打扰了,我现在在用猪吃鱼连接集群时又出现了一个新问题:Error: release choerodon-cluster-agent-hdg failed: namespaces “choerodon” is forbidden: User “system:serviceaccount:kube-system:default” cannot get namespaces in the namespace “choerodon”
但是之前helm init时有个问题:不知道影响不:>

--service-account=helm-tiller$HELM_HOME has been configured at /root/.helm.

Warning: Tiller is already installed in the cluster.
(Use --client-only to suppress this message, or --upgrade to upgrade Tiller to the current version.)

谢谢了!