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-04-14 10:40:57 -07:00
2017-07-28 07:22:36 -07:00
2017-06-08 16:43:38 -04:00
2017-07-31 18:11:02 -07:00
2017-06-12 14:27:56 -07:00
2017-07-23 20:59:11 -07:00
2017-07-23 20:59:11 -07:00
2017-07-26 10:05:29 +08:00
2017-07-14 16:49:52 -07:00
2017-06-22 11:31:03 -07:00
2017-07-10 14:05:46 -07:00
2017-07-12 14:51:45 -07:00
2017-07-31 16:56:58 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-07-07 13:13:44 +02:00
2017-07-17 15:05:37 -07:00
2016-07-16 13:48:21 -04:00
2017-06-29 13:26:09 -07:00
2017-02-07 16:22:59 -08:00
2017-07-17 15:05:37 -07:00
2017-06-22 11:31:03 -07:00
2017-07-23 20:59:11 -07:00
2017-07-17 15:05:38 -07:00
2017-06-12 14:27:56 -07:00
2017-06-22 11:31:03 -07:00
2017-07-24 12:52:45 -04:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-07-13 12:06:19 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-07-17 15:05:37 -07:00
2017-07-17 15:05:38 -07:00
2017-07-17 15:05:37 -07:00
2017-07-20 09:48:54 -07:00
2017-06-22 11:31:03 -07:00
2017-06-05 22:13:54 -07:00
2017-06-22 11:31:03 -07:00
2017-07-17 15:05:37 -07:00
2017-06-22 10:25:57 -07:00
2017-06-22 11:31:03 -07:00
2017-07-31 16:56:58 -07:00
2017-06-22 11:31:03 -07:00
2017-07-18 17:59:15 -07:00
2017-07-17 15:05:38 -07:00
2017-06-22 11:31:03 -07:00