Skip to main content

small utility to iteract with Rancher API

Project description

Lazo
----

Small utility to upgrade Rancher images. It has been developd to be used in CI environments.


$ lazo --help
Usage: lazo [OPTIONS] COMMAND [ARGS]...

lazo aims to help deployment on new version of Rancher workloads.

Options:
-v, --verbosity verbosity level
-q, --quit no output
-k, --key KEY Rancher API Key (username)
-s, --secret SECRET Rancher API secret (password)
--sstdin
-r, --repository URL Docker repository
--check-image / --no-check-image
Do not check Docker repository
-b, --base-url URL Rancher base url
-c, --cluster TEXT Rancher cluster key
-p, --project TEXT Rancher project key [required]
-i, --insecure Ignore verifying the SSL certificate
-d, --dry-run dry-run mode
--pull [IfNotPresent|Always|Never]
Rancher ImagePullPolicy
--help Show this message and exit.

Commands:
upgrade

### Environment varialbles

- RANCHER_ENDPOINT as `--base-url`
- RANCHER_KEY as `--key`
- RANCHER_SECRET as `--secret`
- RANCHER_CLUSTER as `--cluster`
- RANCHER_PROJECT as `--project`


### Examples

$ lazo upgrade cluster1:worload1 saxix/devpi:latest \
--key api-key \
--secret api-secret \
--base-url https://rancher.example.com/v3/
--cluster c-wwk6v
--project p-xd4dg

Use environment variables

$ export RANCHER_KEY=key
$ export RANCHER_PASSWORD=secret
$ lazo upgrade cluster1:worload1 saxix/devpi:latest \
--base-url https://rancher.example.com/v3/
--cluster c-wwk6v
--project p-xd4dg

Use stdin to read credentials

$ cat .pass.txt | lazo --stdin \
upgrade bitcaster:bitcaster \
bitcaster/bitcaster:0.3.0a10 \
--insecure

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lazo-1.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page