You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I input "kubectl -n cadvisor describe pods cadvisor-6tmn5", part of the output is:
Warning FailedCreatePodSandBox <invalid> kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "7730077d97a7b82247f09092dd7ad98093abf2b9bcb5b6b784d04251354ae75e": plugin type="flannel" failed (add): loadFlannelSubnetEnv failed: open /run/flannel/subnet.env: no such file or directory
Then I input "kubectl -n cadvisor describe daemonsets.apps", the output is:
Name: cadvisor
Selector: app=cadvisor,name=cadvisor
Node-Selector: <none>
Labels: app=cadvisor
Annotations: deprecated.daemonset.template.generation: 1
seccomp.security.alpha.kubernetes.io/pod: docker/default
Desired Number of Nodes Scheduled: 1
Current Number of Nodes Scheduled: 1
Number of Nodes Scheduled with Up-to-date Pods: 1
Number of Nodes Scheduled with Available Pods: 0
Number of Nodes Misscheduled: 0
Pods Status: 0 Running / 1 Waiting / 0 Succeeded / 0 Failed
Pod Template:
Labels: app=cadvisor
name=cadvisor
Service Account: cadvisor
Containers:
cadvisor:
Image: gcr.io/cadvisor/cadvisor:v0.45.0
Port: 8080/TCP
Host Port: 0/TCP
Limits:
cpu: 800m
memory: 2000Mi
Requests:
cpu: 400m
memory: 400Mi
Environment: <none>
Mounts:
/dev/disk from disk (ro)
/rootfs from rootfs (ro)
/sys from sys (ro)
/var/lib/docker from docker (ro)
/var/run from var-run (ro)
Volumes:
rootfs:
Type: HostPath (bare host directory volume)
Path: /
HostPathType:
var-run:
Type: HostPath (bare host directory volume)
Path: /var/run
HostPathType:
sys:
Type: HostPath (bare host directory volume)
Path: /sys
HostPathType:
docker:
Type: HostPath (bare host directory volume)
Path: /var/lib/docker
HostPathType:
disk:
Type: HostPath (bare host directory volume)
Path: /dev/disk
HostPathType:
Events:
Type Reason Age From Message
Normal SuccessfulCreate 38s daemonset-controller Created pod: cadvisor-6tmn5
The text was updated successfully, but these errors were encountered:
I deploy cadvisor following the instructions in https://github.com/google/cadvisor/tree/master/deploy/kubernetes.
However, after "kustomize build "https://github.com/google/cadvisor/deploy/kubernetes/base?ref=${VERSION}" | kubectl apply -f -", I input "kubectl -n cadvisor get pods", the output is:
NAME READY STATUS RESTARTS AGE
cadvisor-6tmn5 0/1 ContainerCreating 0 97s
Then I input "kubectl -n cadvisor describe pods cadvisor-6tmn5", part of the output is:
Warning FailedCreatePodSandBox <invalid> kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "7730077d97a7b82247f09092dd7ad98093abf2b9bcb5b6b784d04251354ae75e": plugin type="flannel" failed (add): loadFlannelSubnetEnv failed: open /run/flannel/subnet.env: no such file or directory
Then I input "kubectl -n cadvisor describe daemonsets.apps", the output is:
Name: cadvisor
Selector: app=cadvisor,name=cadvisor
Node-Selector: <none>
Labels: app=cadvisor
Annotations: deprecated.daemonset.template.generation: 1
seccomp.security.alpha.kubernetes.io/pod: docker/default
Desired Number of Nodes Scheduled: 1
Current Number of Nodes Scheduled: 1
Number of Nodes Scheduled with Up-to-date Pods: 1
Number of Nodes Scheduled with Available Pods: 0
Number of Nodes Misscheduled: 0
Pods Status: 0 Running / 1 Waiting / 0 Succeeded / 0 Failed
Pod Template:
Labels: app=cadvisor
name=cadvisor
Service Account: cadvisor
Containers:
cadvisor:
Image: gcr.io/cadvisor/cadvisor:v0.45.0
Port: 8080/TCP
Host Port: 0/TCP
Limits:
cpu: 800m
memory: 2000Mi
Requests:
cpu: 400m
memory: 400Mi
Environment: <none>
Mounts:
/dev/disk from disk (ro)
/rootfs from rootfs (ro)
/sys from sys (ro)
/var/lib/docker from docker (ro)
/var/run from var-run (ro)
Volumes:
rootfs:
Type: HostPath (bare host directory volume)
Path: /
HostPathType:
var-run:
Type: HostPath (bare host directory volume)
Path: /var/run
HostPathType:
sys:
Type: HostPath (bare host directory volume)
Path: /sys
HostPathType:
docker:
Type: HostPath (bare host directory volume)
Path: /var/lib/docker
HostPathType:
disk:
Type: HostPath (bare host directory volume)
Path: /dev/disk
HostPathType:
Events:
Type Reason Age From Message
Normal SuccessfulCreate 38s daemonset-controller Created pod: cadvisor-6tmn5
The text was updated successfully, but these errors were encountered: