May 2019
Intermediate to advanced
442 pages
11h 36m
English
Although historically the cAdvisor code was embedded in the Kubelet binary, it is currently scheduled to be deprecated there. Therefore, we'll be launching cAdvisor as a DaemonSet to future proof this example and to expose its configurations, while also enabling its web interface, as a Kubernetes service, to be explored.
Ensure you move into the correct repository path as shown here:
cd ./chapter06/provision/kubernetes/
Next, we must create a DaemonSet, because we want cAdvisor running in every single node:
apiVersion: apps/v1kind: DaemonSetmetadata: name: cadvisor namespace: monitoring...
Notice all the volume mounts allowing the collection of data from the Docker daemon and various Linux resources as shown here:
... spec: containers: ...