kubesphere常用的問題

一、使用多節點,直接在linux上安裝,如何指定nfs-client?

1、創建nfs-server服務端;參照

https://mp.weixin.qq.com/s/s5sdExIQVjSHEmGuK0qrhA

這篇文章的第一部分;

2、創建nfs-client部分操作,參照:

主要是創建一個nfs-client.yaml

nfs:
  server: "10.10.1.204"    # This is the server IP address. Replace it with your own.
  path: "/nfs/data"    # Replace the exported directory with your own.
storageClass:
  defaultClass: true

3、在生成的 config-sample.yaml 裏,添加部分代碼:

  addons:
  - name: nfs-client
    namespace: kube-system
    sources:
      chart:
        name: nfs-client-provisioner
        repo: 'https://charts.kubesphere.io/main'
        valuesFile: /root/myyaml/nfs-client.yaml
valuesFile路徑是剛剛創建的。

 

 這樣就參照官方的教程繼續執行。

https://kubesphere.com.cn/docs/installing-on-linux/introduction/multioverview/

 

二、多集羣,host集羣添加member集羣一直報異常,問題如下:

https://kubesphere.com.cn/forum/d/6306-member

解決辦法:

cat $HOME/.kube/config

這裏的server地址,改爲member集羣的master的ip地址即可。

比如:

server: https://10.10.1.120:6443

 

三、修改ks配置

kubectl edit cc ks-installer -n kubesphere-system

 

四、查看運行情況:

 
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章