Open ranjithwingrider opened 5 years ago
After debugging this issue, found that the restic pods are not seeing any pod related directories under the /host_pods
mount. Its with the setting of the Restic daemonset for Rancher OS.
In RancherOS , the path is not /var/lib/kubelet/pods
, rather it is /opt/rke/var/lib/kubelet/pods
For resolving this issue, need to change the hostpath from "/var/lib/kubelet/pods" to "/opt/rke/var/lib/kubelet/pods"
Example snippet:
volumes:
- name: cloud-credentials
secret:
secretName: cloud-credentials
- name: host-pods
hostPath:
path: /opt/rke/var/lib/kubelet/pods
- name: scratch
This issue is reported by imran in one of the opensource slack channel. While taking backup I am getting the following error
k8s version - v1.13.5