The diagnostics pod comes with four primary tools customized for use with Kubernetes. To use these tools you must first connect to the diagnostics pod using the kubectl exec command. Note that the Kubernetes pod name is the Helm release name plus the suffix -volt-diagnostics. For example, the following command accesses the tool pod for the Helm release named tools:
$ kubectl exec tools-volt-diagnostics -it -- /bin/bash
When you connect to the command shell for the diagnostics pod, it displays a welcome message, listing all of the VoltDB databases running in the current namespace. For example:
---------------------------------------------- Welcome! Volt Kubernetes Basic Environment information ---------------------------------------------- Helm releases installed: mydb Default release used: "mydb" There are 6 pods in READY state There are 0 pods in NOT READY state ----------------------------------------------
From the command prompt, you can issue commands for any of the diagnostics tools. For example:
$ ksqlcmd --query="select * from contestants" --output-file=/tmp/results.txt $ kcollect --release="mydb" --outdir=/tmp