Sample toolset used for local installation, management and run of a single server Kubernetes cluster experience with easy multiple profiles definition, mainteinance and management
You can eaily define mutiple profiles and multiple instances. Any folder will remember your profiles, drivers, etc...
Working folder contains binaries, tools and configuration files used to run the commands and the Kubernetes experience. Using multiple working folders you can maintain multiple peofiles, nodes and Kunernetes clusters.
Fast definition of a Kubernetes study or test environment locally. All commands will be downloaded and installed, in case you do not have them in your system.
In this case you have to source the environment before use this product.
In order to activate the experience you need to have installed:
-
Virtualbox (or other minikube suitable Virtualizarion framework, see here: specifying-the-vm-driver or here minikube-drivers )
-
Git bash or Linux environment
You can create your machine in a folder just running following command:
You can start/stop/destroy minikube profile, using follwing scripts:
You can check minikube profile using followiung script:
You can check create, check, and provide help infomration for Kubernetes API available components, using following script (--help for command usage and various options):
You can add and remove the Kubernetes dashboard, using following command (use "--delete" to remove the dashboard) :
(It needs kubectl and at least one profile created, run it in the project folder you created the Kubernetes cluster)
In order to set binary installation folder in your shell you can run following comamand:
source ./env.sh
You will have some commands within already reference of some commands (linked to the folder profile) :
-
mk -> minikube -p .....
-
kc -> kubectl .....
Here list of available tools:
-
minikube (used to init/manage Kubernetes cluster)
-
kubectl (used to control Kubernetes cluster)
-
helm (used to deploy charts)
-
kops (used to manage cluster and Kubernetes components)
-
kind (creates and manages local Kubernetes clusters using Docker container 'nodes')
Enjoy the experience.
The library is licensed with LGPL v. 3.0 clauses, with prior authorization of author before any production or commercial use. Use of this library or any extension is prohibited due to high risk of damages due to improper use. No warranty is provided for improper or unauthorized use of this library or any implementation.
Any request can be prompted to the author Fabrizio Torelli at the follwoing email address: