报错信息
fatal: [master]: FAILED! => {
"changed": true,
"cmd": "/usr/local/bin/kubectl get sc nfs-client -o jsonpath='{.parameters.archiveOnDelete}'",
"delta": "0:00:00.094138",
"end": "2020-04-22 21:17:18.668393",
"rc": 1,
"start": "2020-04-22 21:17:18.574255"
}
STDERR:
Error from server (NotFound): storageclasses.storage.k8s.io "nfs-client" not found
MSG:
non-zero return code
fatal: [master]: FAILED! => {
"changed": true,
"cmd": "/usr/local/bin/helm upgrade --install nfs-client /etc/kubernetes/addons/nfs-client-provisioner --set nfs.server=192.168.2.117 --set nfs.path=/volume1/aithingstest --set storageClass.defaultClass=True --set storageClass.archiveOnDelete=false --namespace kube-system",
"delta": "0:00:01.093078",
"end": "2020-04-22 21:17:20.070497",
"rc": 1,
"start": "2020-04-22 21:17:18.977419"
}
STDERR:
Error: forwarding ports: error upgrading connection: error dialing backend: dial tcp 192.168.2.124:10250: connect: no route to host
MSG:
non-zero return code
nfs配置: /conf/common.yaml nfs部分
# NFS CONFIGURATION
# KubeSphere can use existing nfs service as backend storage service.
# change to true to use nfs.
nfs_client_enabled: true
nfs_client_is_default_class: true
# Hostname of the NFS server(ip or hostname)
nfs_server: 192.168.2.117
# Basepath of the mount point
nfs_path: /volume1/aithingstest
nfs_vers3_enabled: true
nfs_archiveOnDelete: true
大家有没有遇到相似的问题的,怎么解决的,::