niranjan94 / rancher-deployer

Update your deployments on Rancher 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Update your deployments on Rancher 2.0

License:MIT License


Languages

Language:Go 86.3%Language:Makefile 10.3%Language:Shell 3.4%