Maestro is a powerful Bash script designed to streamline various Kubernetes operations and facilitate management tasks. It provides a set of options and commands to simplify the configuration and administration of your Kubernetes cluster. Whether you need to create tokens, grant permissions, retrieve information, or create and manage master and worker nodes, Maestro has got you covered.
Before using Maestro, ensure that you have the following:
- A working Bash environment.
- Access to a Kubernetes cluster with the necessary privileges.
You can install this script globally in your machine by doing the following. In this example we use the latest version of the script.
wget https://github.com/joseareia/maestro/archive/refs/tags/v1.3.0.tar.gz
tar -xvf v1.3.0.tar.gz ; cd maestro-1.3.0
chmod +x maestro
mv maestro /usr/local/bin/maestro
After following the steps above, Maestro is ready to use globally in your machine.
Using Maestro is simple. You just need to run the script with the options that you want. Below is an example of you can use it for creating a K3S master node.
maestro master -n my-master-node
In the section below you can find all the options and available commands that Maestro can offer you.
-h, --help
to display help for the given command. When no command is specified, it displays help for the list command.-c, --create-token
to create a new bearer token for the default Kubernetes account.-r, --retrieve-token
to retrieve the existing bearer token for the default Kubernetes account.-p, --permissions
to grant the necessary permissions for the default Kubernetes user to access the REST API.-m, --master-token
to retrieve the existing master token for the current node master.
about
to show a short information about Maestro.list
to list all the commands and useful information.master
to create a k3s master node with a given name.worker
to create a k3s worker node with a given name, master node address, and token.proxy
to create a proxy server or application-level gateway between localhost and the Kubernetes API server.
Maestro simplifies Kubernetes management by providing an intuitive interface to perform common tasks. It automates repetitive operations and helps you save time and effort in administering your Kubernetes cluster. With Maestro, you can focus on developing and deploying applications without getting bogged down by complex Kubernetes configurations.
Contributions to Maestro are welcome! If you encounter any issues, have suggestions for improvements, or would like to add new features, please submit a pull request. We appreciate your feedback and contributions to make Maestro even better.
This project is under the GNU GPLv3 license.