crash-diagnostics
crash-diagnostics copied to clipboard
Crash-Diagnostics (Crashd) is a tool to help investigate, analyze, and troubleshoot unresponsive or crashed Kubernetes clusters.
On CAPI clusters it is possible to use the certificates on the control plane to query etcd metrics when troubleshooting performance with etcd. This could perhaps also run Storage I/O...
This PR is a complete rewrite of the way functions work. This approach makes it simple to develop Starlark function using a pluggable approach.
For the following script ``` kc="{0}/.kube/config".format(os.home) kube_capture(what="objects", kinds=["clusters"], kube_config=kube_config(path=kc)) ``` With the following cluster: ``` $ k get clusters -A NAMESPACE NAME PHASE default test1 Provisioning ``` Run this: ```...
If the filter has `notapod` in kinds, the `pod` resources will not be filtered. https://github.com/vmware-tanzu/crash-diagnostics/blob/main/k8s/client.go#L149 ``` if len(kinds) > 0 && !strings.Contains(kinds, strings.ToLower(res.Kind)) { continue } ``` It should use...
fixes #210 Signed-off-by: Daniel Jiang
I'm using `crashd v0.3.2` and SSH connections don't seem to timeout: ``` time="2021-01-29T13:19:38-08:00" level=debug msg="run: executing command on 192.168.128.3 using ssh: [sudo /home/vmware-system-user/tkc_get_cluster_logs.sh 0]" time="2021-01-29T13:19:38-08:00" level=debug msg="ssh.run: /usr/bin/ssh -q -o...
As a script writer, when I used `kube_capture` or `kube_get` with a bad `what` param like this `kube_capture(what="objcs", groups=["apps"])` The script should default to `what=objects`
Currently, an executing script will fail if an attempt is made to access a missing or undefined args. For instance, the following will fail: ```python def test_args: if args.myArg ==...
Copy-Compress is the ability to copy-from a file and compress it. This is to resolve #191
Right now crashd is only distributed via GitHub release page. Users of the project should be able to pull the binary from other (more convenient) packaging sources such as Homebrew,...