Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

exalif/cli

Open more actions menu

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.