我正试图在kubernetes吊舱上部署spark历史服务器。为此,我使用以下一组commands:-
helm repo add stable https://kubernetes-charts.storage.googleapis.com
helm install stable/spark-history-server --generate-name
但在这样做的同时,我面临的问题和下面的错误logs:-
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedMount 7m51s (x129 over 3h31m) kubelet, aks-agentpool-20240184-1 (combined from similar events): MountVolume.SetUp failed for volume "nfs-pv" : mount failed: exit status 32
Mounting command: systemd-run
Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/2bc91c0b-a9e8-4af6-9a6a-8e4781079afb/volumes/kubernetes.io~nfs/nfs-pv --scope -- mount -t nfs spark-history-server-1599813147-nfs.default.svc.cluster.local:/ /var/lib/kubelet/pods/2bc91c0b-a9e8-4af6-9a6a-8e4781079afb/volumes/kubernetes.io~nfs/nfs-pv
Output: Running scope as unit run-re958022a7250453abcd26d58efcbf360.scope.
mount.nfs: Failed to resolve server spark-history-server-1599813147-nfs.default.svc.cluster.local: Name or service not known
Warning FailedMount 2m51s (x17 over 3h31m) kubelet, aks-agentpool-20240184-1 Unable to attach or mount volumes: unmounted volumes=[data], unattached volumes=[spark-history-server-1599813147-token-bglz7 data]: timed out waiting for the condition
任何帮助都将不胜感激!
1条答案
按热度按时间p8h8hvxi1#
不幸的是,这是已知的问题之一:
kubernetes安装不配置节点的
resolv.conf
默认情况下使用群集dns的文件,因为该进程本质上是特定于分发的。这可能最终会实现。但是,您可以从以下解决方法中选择:
指定时,nfs已成功装入
ClusterIP
而不是域名。你可以在这里找到一个例子。更新
resolv.conv
在每个节点上手动执行。在中手动写入服务名称
/etc/hosts
在所有节点上。