google / cadvisor

Analyzes resource usage and performance characteristics of running containers.
Other
17.14k stars 2.32k forks source link

The deployment method for kubernetes isn't effective #3617

Open lengcangche-gituhub opened 1 week ago

lengcangche-gituhub commented 1 week ago

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 -", there is no pod for cadvisor.

Additionally, the output is:

Warning: 'commonLabels' is deprecated. Please use 'labels' instead. Run 'kustomize edit fix' to update your Kustomization automatically. namespace/cadvisor created serviceaccount/cadvisor created daemonset.apps/cadvisor created

Creatone commented 1 week ago

Hello, that's strange. Could you give me output of kubectl -n cadvisor get pods ?

λ ~/ echo $VERSION                                                                                                  

λ ~/ kustomize build "https://github.com/google/cadvisor/deploy/kubernetes/base?ref=${VERSION}" | kubectl apply -f -
# Warning: 'commonLabels' is deprecated. Please use 'labels' instead. Run 'kustomize edit fix' to update your Kustomization automatically.
namespace/cadvisor created
serviceaccount/cadvisor created
daemonset.apps/cadvisor created
λ ~/ kubectl -n cadvisor get daemonsets.apps                                                                        
NAME       DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE
cadvisor   1         1         1       1            1           <none>          5s
λ ~/ kubectl -n cadvisor get pods           
NAME             READY   STATUS    RESTARTS   AGE
cadvisor-2p4rj   1/1     Running   0          9s
lengcangche-gituhub commented 1 week ago

v0.49.0

No resources found in cadvisor namespace.

Creatone commented 1 week ago

Could you give me output of kubectl -n cadvisor describe daemonsets.apps ?