rancher-deployer

command module
v0.0.0-...-47f65d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 5 Imported by: 0

README

Rancher Deployer

Build Status GitHub (pre-)release

USAGE:
   rancher-deployer [global options] [arguments...]

GLOBAL OPTIONS:
   --config PATH, -c PATH                        PATH to a yaml config file
   --token TOKEN, -t TOKEN                       Override TOKEN for deployment
   --tag TAG, -T TAG                             Override the TAG for the docker image to use
   --image IMAGE-URL, -i IMAGE-URL               Override the Docker IMAGE-URL
   --environments ENVIRONMENTS, -e ENVIRONMENTS  ENVIRONMENTS to deploy to (comma-separated)
   --help, -h                                    show help
   --version, -v                                 print the version
Configuration Example
rancherUrl: https://rancher.yourdomain.com
token: xyzzy123:abcdefghijklmnop
environments:
  dev:
    -
      project: c-12ab3:p-4c5def
      image: docker.io/redis
      tag: alpine
      namespace: api
      deployment: redis-server
      type: deployment
    -
      project: c-12ab3:p-4c5def
      image: 111111111111.dkr.ecr.ap-west-1.amazonaws.com/dev-api-server
      tag: latest
      namespace: api
      deployment: api-server
      type: statefulset
  production:
    -
      project: c-4c5def:p-12ab3
      image: docker.io/redis
      tag: alpine
      namespace: api
      deployment: redis-server
    -
      project: c-4c5def:p-12ab3
      image: 111111111111.dkr.ecr.ap-west-1.amazonaws.com/production-api-server
      tag: latest
      namespace: api
      deployment: api-server
Override via Environment variables

Examples:

  • rancherUrl - DEPLOYER_RANCHERURL
  • token - DEPLOYER_TOKEN

If you would like you override tokens at an environment level,

DEPLOYER_ENVIRONMENTS_<ENVIRONMENT>_TOKEN

Example:

DEPLOYER_ENVIRONMENTS_DEV_TOKEN=ATokenForDev

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL