Feynman 更改标题为「手把手教程:Kubeadm 安装 k8s 后安装 kubesphere 2.1.1
1 个月 后

pptfz 官方提供的openebs存储貌似不太好使,反正我是安装完后pod的状态一直是pending

绝了,我就是一直pending,搞了好几遍,都是pending

pptfz nfs这里选择在master安装,上边的参考文章中说nfs server安装在master节点会有问题,但是我这里没有

第一次我实验的确可以正常,但是再做一次就连不上了,确认
另外官方版本的安装方法不能用tiller的V2.16.9版本,执行kubesphere最小化安装时候会报错,切换到Tiller的V2.16.3版本没有这个问题

切换openebs存储为nfs果然好使了,目前已经完成安装

感谢大哥的帖子,感谢kubesphere官方

    6 天 后
    13 天 后
    6 天 后

    zhenghao299 这个帖子上面有啊,你好好看下这个开贴的大哥写的,比较详细,按照他说的,但是master不要安装NFS server,另外注意一下tiller的版本,最近比较忙,没有及时看,哎

    1 个月 后

    可能的文档修正:
    storageclass.yaml 文件中涉及rbac部分的配置应添加kube-system命名空间的用户

    ---
    kind: ClusterRoleBinding
    apiVersion: rbac.authorization.k8s.io/v1
    metadata:
      name: run-nfs-provisioner
    subjects:
      - kind: ServiceAccount
        name: nfs-provisioner
        namespace: default
      - kind: ServiceAccount     //这三行之前没有
        name: nfs-provisioner
        namespace: kube-system
    roleRef:
      kind: ClusterRole
      name: nfs-provisioner-runner
      apiGroup: rbac.authorization.k8s.io

    出现的问题:kubesphere-system 命名空间下除了ks-installer的其他三个pod一直为pending状态
    后定位到pod nfs-client-provisioner 的日志

    [root@kubesphere01 ~]# kubectl logs nfs-client-provisioner-7f959768b5-vchmj
    ...
    E0830 07:12:31.186152       1 leaderelection.go:234] error retrieving resource lock kube-system/fuseim.pri-ifs: endpoints "fuseim.pri-ifs" is forbidden: User "system:serviceaccount:kube-system:nfs-provisioner" cannot get resource "endpoints" in API group "" in the namespace "kube-system"
    E0830 07:12:34.579320       1 leaderelection.go:234] error retrieving resource lock kube-system/fuseim.pri-ifs: endpoints "fuseim.pri-ifs" is forbidden: User "system:serviceaccount:kube-system:nfs-provisioner" cannot get resource "endpoints" in API group "" in the namespace "kube-system"
    E0830 07:12:36.602935       1 leaderelection.go:234] error retrieving resource lock kube-system/fuseim.pri-ifs: endpoints "fuseim.pri-ifs" is forbidden: User "system:serviceaccount:kube-system:nfs-provisioner" cannot get resource "endpoints" in API group "" in the namespace "kube-system"
    E0830 07:12:40.947084       1 leaderelection.go:234] error retrieving resource lock kube-system/fuseim.pri-ifs: endpoints "fuseim.pri-ifs" is forbidden: User "system:serviceaccount:kube-system:nfs-provisioner" cannot get resource "endpoints" in API group "" in the namespace "kube-system"
    E0830 07:12:45.005643       1 leaderelection.go:234] error retrieving resource lock kube-system/fuseim.pri-ifs: endpoints "fuseim.pri-ifs" is forbidden: User "system:serviceaccount:kube-system:nfs-provisioner" cannot get resource "endpoints" in API group "" in the namespace "kube-system"

    修改rbac配置并apply后,一切正常,pod转为Running状态

      10 天 后

      ks-account-596657f8c6-vph5v 这个pod一直处于Init:0/2状态, ks-apigateway-78bcdc8ffc-4znrv 这个报错“ redis.go:51] unable to reach redis hostdial tcp: i/o timeout”,测试redis是正常的

        2 个月 后
        12 天 后

        能不能用3.0的功能全开的yaml 安装2.1.1 呢???

        7 天 后
        1 个月 后

        你好,请问如何从k8s集群中卸载掉ks而不破坏原有的k8s集群,因为ks和k8s有些东西冲突了

          jcm 冲突? 没有吧!! 您是怎么安装的k8s 和ks? 端口冲突还是什么冲突? 可以改的,实在不行话那就delete掉yaml配置即可,或者scale掉相应的dp也可!

          • jcm 回复了此帖

            00724 好像是普罗米修斯冲突了,之前k8s集群的时候有装过,后面测试也弄了一个,现在已经卸掉ks了,目前考虑ks版本降到2.1.1,或者看看能不能解决安装3.0的问题

            1 个月 后

            请问有把kubesphere源码编译成二进制文件,然后安装kubesphere的帖子吗