exalif / cli

CLI for Rancher and K8s operations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exalif CLI

CLI to do some magic stuff on Rancher and K8s. Originally intended to be used from gitlab CI.

Build Status Coverage Status

Requirements

  • node 10
  • Rancher CLI >2.0.0
  • kubectl

Note: all these dependencies are already embedded when using official exalif/cli docker image.

Usage

General usage

docker run --rm -v $(pwd):/data exalif/cli COMMAND [ARGUMENTS]

List available commands

You can use docker run --rm exalif/cli help to get full set of commands.

Mandatory options

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

Use environment variables

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 ...

Override configuration

You can override config.js configuration by mounting apprioriate file in docker /app/config directory.

About

CLI for Rancher and K8s operations

License:MIT License


Languages

Language:JavaScript 99.8%Language:Dockerfile 0.2%Language:Shell 0.0%