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

Add additional information for debugging Daprd in Kubernetes #1614

Closed
georgestevens99 opened this issue Jul 6, 2021 · 0 comments · Fixed by #3919
Closed

Add additional information for debugging Daprd in Kubernetes #1614

georgestevens99 opened this issue Jul 6, 2021 · 0 comments · Fixed by #3919
Assignees
Labels
content/missing-information More information requested or needed platform/Kubernetes Applicable to the Kubernetes hosting environment

Comments

@georgestevens99
Copy link
Contributor

What content needs to be created or modified?
There needs to be 1) some cross references between a couple documents and 2) there needs to be added information. Both described below.

This Issue is a response to a request @msfussell made to me on Dapr Discord at https://discord.com/channels/778680217417809931/778680217417809934/860021956392910918

Describe the solution you'd like
Cross references:

  1. This doc, https://docs.dapr.io/operations/troubleshooting/logs-troubleshooting/ ("Configure and view dapr logs") needs to reference this doc https://docs.dapr.io/developing-applications/debugging/debug-k8s/debug-daprd/ ("Debug daprd on Kubernetes") which describes in depth debugging, not just log based debugging.

  2. And, vice versa as well. Namely, "Debug daprd on Kubernetes" needs to reference "Configure and view dapr logs".

Additional material:

  1. Both of the above documents could also provide a link to the Dapr Community Meeting where Yaron described how to use kubectl to debug daprd and apps on Kubernetes. This is an excellent resource. The link to the YouTube community meeting is
    https://www.youtube.com/watch?v=pniLPRbuLD8

  2. The material in Yaron's presentation (above) could also be written down and placed in another new document called something like "Using kubectl to debug Daprd and Apps running on Kubernetes". I say this since Yaron's material goes beyond mere logs by examining the details of various Kubernetes objects via kubectl.

  3. However, writing another document is a significant job, but worthwhile nevertheless. A shorter term fix would be to attach a list of commonly used kubectl commands to the existing "Configure and view dapr logs" document. Below is a list of the kubectl commands I typically use. Many of them originally came from Yaron's Community meeting presentation:

Kubectl commands frequently used in debugging daprd and apps running on Kubernetes:

kubectl get all
kubectl get all --n <someNamespace>
kubectl get all --all-namespaces

kubectl get pods

kubectl get events --n <someNamespace>
kubectl get events --sort-by=.metadata.creationTimestamp --n <someNamespace>

kubectl get services

kubectl logs <podId> daprd
kubectl logs <podId> <myAppContainerName>
kuebctl logs <deploymentId> daprd
kubectl logs <deploymentId> <myAppContainerName>

kubectl describe pod <podId>
kubectl describe deploy <deployId>
kubectl describe replicaset <replicasetId>

To Restart a pod: kubectl delete pod <podId> which causes the replicaset controller to restart the pod after the delete.

That's it!

Where should the new material be placed?
See above.

The associated pull request from dapr/dapr, dapr/components-contrib, or other Dapr code repos

Additional context

@georgestevens99 georgestevens99 added the content/missing-information More information requested or needed label Jul 6, 2021
@AaronCrawfis AaronCrawfis changed the title Debugging Daprd in Kubernetes Add additional information for debugging Daprd in Kubernetes Jul 7, 2021
@AaronCrawfis AaronCrawfis added the platform/Kubernetes Applicable to the Kubernetes hosting environment label Jul 7, 2021
@hhunter-ms hhunter-ms self-assigned this Jul 13, 2023
@hhunter-ms hhunter-ms removed their assignment Sep 18, 2023
@hhunter-ms hhunter-ms self-assigned this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content/missing-information More information requested or needed platform/Kubernetes Applicable to the Kubernetes hosting environment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants