This repo holds the CLI to manage a VKPR cluster. This CLI is based on Ritchie formulas. VKPR-CLI is Tool build with Shell that has the objetive to make it easier for the Develops to Build and Deploy it's scripts in yours cluster.
VKPR-CLI also helps the local development by using k3d to fully provision a Kubernetes cluster instance for testing purposes.
Using Ritchie we could create our own CLI and implement it with plain shell scripts.
For more information (if you are curious about it), please check the Ritchie CLI documentation
VKPR-CLI was made to run on Linux / MacOS. It's pre-requisites are:
The VKPR CLI tool will do its best to hide its internals (including Ritchie).
# Install the VKPR
curl -fsSL https://get.vkpr.net/ | bash
# Create alias
alias vkpr="rit vkpr"Try yourself to use VKPR following the next steps:
In order to start using VKPR, the first instruction you will have to use is the init:
vkpr initIt will download and install all required tools to your local environment:
- kubectl
- helm
- k3d
- arkade
- jq
- yq
After initializing all VKPR dependencies, you may be creating the Kubernetes Cluster in your environment for testing as a production environment.
To do that, you can run the command:
vkpr infra upYou can now test your scripts and create your own environments with VKPR commands.
After you have started VKPR and connected to an environment with the Kubernetes cluster, you may be running the scripts.
Scripts follow a standard order of vkpr + object + verb.
To start a simple web application, you can run the command:
vkpr whoami installIn certain commands, there is a quiz on how you want the application to go up. It can be configured, for example, access domains, HTTPS communication and others. After that, this command will create the objects needed to use whoami.
If you don't want to have to be configuring the application, you may be using the --default flag to follow the default values
To be deleting all dependencies of the installed script, it is necessary to run the following command:
vkpr whoami remove| Tools | Description |
|---|---|
| nginx-ingress-controller | Install ingress-nginx |
| whoami | Install whoami |
| cert-manager | Install cert-manager to manage your certificates |
| external-dns | Install external-dns |
| loki | Install Loki for monitoring and tracing |
| keycloak | Install Keycloak to manage the identity and access management |
The Documentation can be viewed in the following link.
VKPR-CLI is licensed under the Apache License Version 2.0.
