• 安装部署v2.1.1
  • KubeSphere2.1.1安装过程中报3个PVC(mysql-pvc,etcd-pvc和data-redis-ha-server)没有创建

还是pvc的问题,你的pvc创建失败了,控制台相关的pod都没启动, 这个应该是gfs的问题,你看看gfs的日志

    qcloud 刚安装的环境还是已经在上面跑应用,如果是刚安装出现的问题,可以把对应的pv删了,重新cm ks-installer 的pod。

      Forest-L 新安装的应用,ks-installer能单独安装吗?还是必须重新安装install.sh

      我自己搭建的nfs集群,不知道为什么mysql etcd redis的pvc都创建不出来,然后监控的两个pvc可以创建

      [root@online-aliyun-cn-shenzhen-c-vm-10041 cert]# ll /nfs/k8s/data/
      total 32
      drwxrwxrwx 5 root root 4096 May 15 13:51 ./
      drwxr-xr-x 3 root root 4096 May 13 18:32 ../
      drwxrwxrwx 3 root root 4096 May 15 13:51 kubesphere-monitoring-system-prometheus-k8s-db-prometheus-k8s-0-pvc-c277b5aa-6098-4d67-b22f-e9d0a2e8b355/
      drwxrwxrwx 3 root root 4096 May 15 13:51 kubesphere-monitoring-system-prometheus-k8s-system-db-prometheus-k8s-system-0-pvc-11c1bbba-cdc1-4a9b-91c3-373df8c9646e/
      drwx------ 2 root root 16384 May 13 18:14 lost+found/

      这些就创建不了,导致安装失败
      `TASK [common : include_tasks] **************************************************
      skipping: [localhost] => (item={u’ks’: u’mysql-pvc’, u’op’: u’openpitrix-db’})
      skipping: [localhost] => (item={u’ks’: u’etcd-pvc’, u’op’: u’openpitrix-etcd’})

      TASK [common : Getting PersistentVolumeName (mysql)] ***************************
      skipping: [localhost]

      TASK [common : Getting PersistentVolumeSize (mysql)] ***************************
      skipping: [localhost]

      TASK [common : Setting PersistentVolumeName (mysql)] ***************************
      skipping: [localhost]

      TASK [common : Setting PersistentVolumeSize (mysql)] ***************************
      skipping: [localhost]

      TASK [common : Getting PersistentVolumeName (etcd)] ****************************
      skipping: [localhost]

      TASK [common : Getting PersistentVolumeSize (etcd)] ****************************
      skipping: [localhost]

      TASK [common : Setting PersistentVolumeName (etcd)] ****************************
      skipping: [localhost]

      TASK [common : Setting PersistentVolumeSize (etcd)] ****************************
      skipping: [localhost]

      TASK [common : Kubesphere | Check mysql PersistentVolumeClaim] *****************
      fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-system mysql-pvc -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.409147″, “end”: “2020-05-15 05:50:27.114121″, “msg”: “non-zero return code”, “rc”: 1, “start”: “2020-05-15 05:50:26.704974”, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“mysql-pvc\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“mysql-pvc\” not found"], “stdout”: "", “stdout_lines”: []}
      …ignoring

      TASK [common : Kubesphere | Setting mysql db pv size] **************************
      skipping: [localhost]

      TASK [common : Kubesphere | Check redis PersistentVolumeClaim] *****************
      fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-system redis-pvc -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.420811″, “end”: “2020-05-15 05:50:27.734230”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2020-05-15 05:50:27.313419”, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“redis-pvc\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“redis-pvc\” not found"], “stdout”: "", “stdout_lines”: []}
      …ignoring

      TASK [common : Kubesphere | Setting redis db pv size] **************************
      skipping: [localhost]

      TASK [common : Kubesphere | Check minio PersistentVolumeClaim] *****************
      fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-system minio -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.456821″, “end”: “2020-05-15 05:50:28.398121″, “msg”: “non-zero return code”, “rc”: 1, “start”: “2020-05-15 05:50:27.941300″, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“minio\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“minio\” not found"], “stdout”: "", “stdout_lines”: []}
      …ignoring

      TASK [common : Kubesphere | Setting minio pv size] *****************************
      skipping: [localhost]`

      这是我的默认存储
      [root@online-aliyun-cn-shenzhen-c-vm-10041 ]# kubectl get sc
      NAME PROVISIONER AGE
      nfs-storage-master01 (default) nfs-storage-master01 37h

        1 个月 后
        1 个月 后

        同样是 redis-ha redis-pvc 没有创建,
        有没有redis-ha.yaml 了? 手动创建也行啊?

          moyee
          收回、不能手动创建,而是需要通过helm delete –purge ks-redis 然后重启安装任务
          如果失败,重复删除-安装操作,直到成功