Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1 KB

README.md

File metadata and controls

45 lines (32 loc) · 1 KB

kubectl-flagger

A kubectl plugin for manually gating Flagger based Canary deployments.

Prerequisites

Installation

# clone this repo
$ git clone https://github.com/mayankshah1607/kubectl-flagger

$ cd kubectl-flagger

# install
$ make

Ensure that installation is working correctly:

$ kubectl flagger --help

Usage

1. Manual promotion

$ kubectl flagger promote [canary name] [canary namespace] [flags]

# promote canary/podinfo in namespace/app
# use `-n` to specify the namespace where flagger-loadtester is installed
$ kubectl flagger promote podinfo app -n tester

2. Manual rollback

$ kubectl flagger rollback [canary name] [canary namespace] [flags]

# abort canary/podinfo in namespace/app
# use `-n` to specify the namespace where flagger-loadtester is installed
$ kubectl flagger rollback podinfo app -n tester