Troubleshooting: DNS Resolution Failed
| October 26, 2021
All Longhorn versions.
The longhorn-driver-deployer or longhorn-csi-plugin or longhorn-ui Pods unable to access the longhorn manager backend http://longhorn-backend:9500/v1.
The CoreDNS of the Kubernetes cluster is unable to resolve the longhorn-backend service, causing the DNS resolution to fail.
kubectl get service longhorn-backend -n longhorn-system
kubectl get pod -l app=longhorn-manager -n longhorn-system
kubectl get pod -n kube-system
kubectl exec -it <longhorn-manager-pod-name> -- nslookup longhorn-backend
K3S_RESOLV_CONF=/etc/resolv.conf
RKE2_RESOLV_CONF=/etc/resolv.conf
to k3s or rke2 env files on all nodes, then restart the k3s or rke2 server/agent service.
--resolv-conf
flag to point to the correct resolv.conf
.Recent articles
Troubleshooting: NoExecute taint prevents workloads from terminating© 2019-2024 Longhorn Authors | Documentation Distributed under CC-BY-4.0
© 2024 The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.