CLI to do some magic stuff on Rancher and K8s. Originally intended to be used from gitlab CI.
- node 10
- Rancher CLI >2.0.0
- kubectl
Note: all these dependencies are already embedded when using official exalif/cli
docker image.
docker run --rm -v $(pwd):/data exalif/cli COMMAND [ARGUMENTS]
You can use docker run --rm exalif/cli help
to get full set of commands.
Some options are required for any command:
--orchestrator-url
: url of your Rancher installation--orchestrator-access-key
: access key configured in your Rancher installation--orchestrator-secret-key
: secret key configured in your Rancher installation
Every cli options can be provided by environment variables in uppercase and prefixed with EXALIF_
.
Environment variables can be store on proper files (e.g: ~/.bashrc
or ~/.bash_profile
) or provided at docker run level.
Example:
docker run --rm -e EXALIF_ORCHESTRATOR_ACCESS_KEY=rancherAccessKey ...
You can override config.js
configuration by mounting apprioriate file in docker /app/config
directory.