Azure Kubernetes Service (AKS) kubectl plugin
Перейти к файлу
Qasim Sarfraz 26740a6042
Merge pull request #21 from Azure/qasim/add-import-config
config: Add config import command
2023-04-03 17:04:46 +02:00
cmd docs: Add config import command 2023-04-03 16:11:38 +02:00
docs docs: Add config import command 2023-04-03 16:11:38 +02:00
.gitignore makefile: Create initial Makefile 2022-02-14 18:59:10 +01:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md committed 2021-11-19 09:50:58 -08:00
LICENSE LICENSE committed 2021-11-19 09:50:59 -08:00
Makefile makefile: Create initial Makefile 2022-02-14 18:59:10 +01:00
README.md docs: Add config command 2023-03-06 14:53:58 +01:00
SECURITY.md SECURITY.md committed 2021-11-19 09:51:00 -08:00
SUPPORT.md docs: Update SUPPORT.md and fix check-apiserver-connectivity documentation 2022-02-17 08:30:44 +01:00
go.mod go: Upgrade packages using go v1.16 2023-03-06 15:47:01 +01:00
go.sum go: Upgrade packages using go v1.16 2023-03-06 15:47:01 +01:00
main.go root: Add run-command and check-connectivity commands 2022-02-14 18:59:10 +01:00

README.md

Microsoft Azure CLI kubectl plugin

kubectl-az is a set of commands used to troubleshoot Kubernetes clusters in Azure.

Going through the following documentation will help you to understand each available command and which one is the most suitable for your case:

Consider kubectl-az expects the cluster to use virtual machine scale sets. And, commands that allow using --node flag requires the Kubernetes API server to up and running because it is used to retrieve the VMSS instance information of nodes.

However, in case of issues with the Kubernetes API server, we can retrieve the VMSS instance information from the Azure portal and pass it to the commands using the --id flag or separately with the --subscription, --node-resource-group, --vmss and --instance-id flags.

Install

$ git clone https://github.com/Azure/kubectl-az.git
$ cd kubectl-az
# Build and copy the resulting binary in $HOME/.local/bin/
$ make install

Notice it requires Go version 1.17.

Usage

$ kubectl az --help
Microsoft Azure CLI kubectl plugin

Usage:
  kubectl-az [command]

Available Commands:
  check-apiserver-connectivity Check connectivity between the nodes and the Kubernetes API Server
  completion                   Generate the autocompletion script for the specified shell
  config                       Manage configuration
  help                         Help about any command
  run-command                  Run a command in a node
  version                      Show version

Flags:
  -h, --help   help for kubectl-az

Use "kubectl-az [command] --help" for more information about a command.

It is necessary to sign in to Azure to run any kubectl-az command. To do so, you can use any authentication method provided by the Azure CLI using the az login command; see further details here. However, if you do not have the Azure CLI or have not signed in yet, kubectl-az will open the default browser and load the Azure sign-in page where you need to authenticate.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.