https://github.com/mayankshah1607/kubectl-flagger
A kubectl plugin for manually gating Flagger based Canary deployments
https://github.com/mayankshah1607/kubectl-flagger
flagger kubectl kubectl-plugin kubernetes
Last synced: about 2 months ago
JSON representation
A kubectl plugin for manually gating Flagger based Canary deployments
- Host: GitHub
- URL: https://github.com/mayankshah1607/kubectl-flagger
- Owner: mayankshah1607
- Created: 2021-03-10T07:58:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-26T06:46:20.000Z (about 5 years ago)
- Last Synced: 2025-03-31T11:45:57.566Z (about 1 year ago)
- Topics: flagger, kubectl, kubectl-plugin, kubernetes
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kubectl-flagger
A kubectl plugin for manually gating Flagger based Canary deployments.
## Prerequisites
- [flagger-loadtester](https://docs.flagger.app/usage/webhooks#load-testing)
- [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl)
## Installation
```bash
# clone this repo
$ git clone https://github.com/mayankshah1607/kubectl-flagger
$ cd kubectl-flagger
# install
$ make
```
Ensure that installation is working correctly:
```bash
$ kubectl flagger --help
```
## Usage
### 1. Manual promotion
```bash
$ 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
```bash
$ 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
```