Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The deployment method for kubernetes cannot be completed #3624

Open
lengcangche-gituhub opened this issue Nov 12, 2024 · 0 comments
Open

The deployment method for kubernetes cannot be completed #3624

lengcangche-gituhub opened this issue Nov 12, 2024 · 0 comments

Comments

@lengcangche-gituhub
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant