Kubernetes Submit Queue
7c9ba69617
Merge pull request #48487 from dixudx/validate_cadvisor_rootpath
Automatic merge from submit-queue (batch tested with PRs 48487, 49009, 49862, 49843, 49700)
validate cadvisor rootpath
**What this PR does / why we need it**:
When working on issue #48452, I found [KubeletConfiguration.RootDirectory](https://github.com/kubernetes/kubernetes/blob/master/cmd/kubelet/app/server.go#L525) was never been validated. The default value is set to ["/var/lib/kubelet"](https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/componentconfig/v1alpha1/defaults.go#L342).
If this directory does not exist in the file system, the [cadvisor.manager](https://github.com/kubernetes/kubernetes/blob/master/vendor/github.com/google/cadvisor/manager/manager.go#L679) will fail to gather the information for metrics.
> error trying to get filesystem Device for dir /var/lib/kubelet: err: stat failed on /var/lib/kubelet with error: no such file or directory
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
**Special notes for your reviewer**:
/cc @feiskyer @k82cn
**Release note**:
```release-note
validate cadvisor rootpath
```
2017-08-04 23:40:00 -07:00
..
2017-08-04 18:13:31 -07:00
2017-07-29 05:28:49 -07:00
2017-08-04 23:40:00 -07:00
2017-07-18 15:35:40 -03:00
2017-07-31 16:56:58 -07:00
2017-08-02 05:16:04 -07:00
2017-07-24 17:18:50 +02:00
2017-01-05 14:14:13 -08:00
2017-07-26 19:16:02 +08:00
2017-07-19 00:28:40 -04:00
2017-01-19 08:00:52 +05:30
2017-07-25 11:05:18 -07:00
2017-08-03 09:33:58 +02:00
2017-07-20 13:23:13 -07:00