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的帖子吗

            wizard2318 没有,但是有编译成二进制文件运行前后端代码的方法 (搭建前后开发环境),我们在 B 站发布了视频教程

              3 个月 后

              这个教程很全面,值得好好学习学习。感谢分享!

              1 个月 后

              为什么我最小化安装的时候 少了一个openldap-0的pod,导致我的ks-account一直初始化不成功