A CLI Tool for connecting to Azure clusters via kubectl config, and quickly finding errors within pods, components, and helm releases.
There are 2 binary executables available:
- MacOS Terminal
/target/debug/azcon
, use./azcon
to execute - Windows Powershell
/target/x86_64-pc-windows-gnu/debug/azcon.exe
, use.\azcon.exe
to execute.
To use all the features, install Azure CLI, Kubernetes, and Helm on the same environment as the azcon. This is important because you must be logged into Azure using az login
, and there must be kubectl config
available to fetch cluster data from.
To create a command for MacOS:
- Copy azcon,
/target/debug/azcon
, into/usr/local/bin
.
cp /target/debug/azcon /usr/local/bin
- Check if path exists.
echo $PATH
if /usr/local/bin
string is not found in the output, create it.
export PATH=$PATH:/usr/local/bin
Repeat step 2. and verify /usr/local/bin
is inside the PATH. If so, restart the terminal.
- Call
azcon
command from directory.
azcon
- Upon executing, you should see which cluster/context you are connected to at the top of the menu. This is displayed using command:
kubectl config current-context
. If you see "you are currently connected to NONE", use command:kubectl config current-context
to ensurekubectl config
file is available in your environment, credentials are checked usingaz login
, and that there is a cluster that is currently connected.
-
Connect to cluser - displays a numered list of every cluster cached inside
kubectl config
, entering a number will connect to that cluster. -
Namespace report - prompts for a namespace inside the cluster, which outputs only lines with errors for
get deployments
,get pods
,get hr
for the namespace. Then aComponents Report
will display more choices to either forhelm history
for components orget events
for pods.
NOTE: This does not delete the cluster from the Azure Portal!
3. Delete a cluster - displays a numered list of every cluster cached inside kubectl config
, entering a number will remove the cluster from the kubectl config
file.