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 isn't effective #3617

Open
lengcangche-gituhub opened this issue Oct 28, 2024 · 3 comments
Open

The deployment method for kubernetes isn't effective #3617

lengcangche-gituhub opened this issue Oct 28, 2024 · 3 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 -", 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
Copy link
Collaborator

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
Copy link
Author

v0.49.0

No resources found in cadvisor namespace.

@Creatone
Copy link
Collaborator

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

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

2 participants