This repository contains a collection of utility scripts designed to simplify managing your Kubernetes cluster.
To get started, clone the repository and give executable permissions to the scripts:
git clone https://github.com/xstar97/cluster-scripts ./scripts
You can create alias commands for the available utility scripts by running:
./scripts/utils.sh gen_alias
To specify a custom configuration file for aliases, use:
./scripts/utils.sh gen_alias --config /path/to/aliases.yaml
Short alias command variants are also available:
genAlias
genAlias --config /path/to/aliases.yaml
To ensure your scripts are up-to-date, use the following command to pull the latest changes:
updateScripts
To view the available commands and get detailed usage information, run:
utils
The -h
flag provides a description of each function along with example usage. Here are the available functions:
Feel free to contribute by submitting issues and pull requests. For major changes, please open an issue first to discuss what you would like to change.