-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[addon istio] Modify the workflow of canary-rollback (#570)
Signed-off-by: suwanliang_yewu <[email protected]> Signed-off-by: suwanliang_yewu <[email protected]>
- Loading branch information
Showing
6 changed files
with
84 additions
and
21 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: canary-rollout-istio | ||
version: 1.0.2 | ||
description: Enable service mash and managing triffic shiffting in workflow. | ||
icon: https://github.com/istio/istio/raw/master/logo/istio-bluelogo-whitebackground-unframed.svg | ||
url: https://istio.io/ | ||
|
||
tags: | ||
- service-mesh | ||
- rollout | ||
|
||
deployTo: | ||
control_plane: true | ||
runtime_cluster: true | ||
|
||
dependencies: | ||
- name: istio | ||
- name: rollout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Canary Rollout with Istio | ||
|
||
This addon provides istio support for vela rollout, it just adds two definitions and depends on vela-rollout and istio addons. | ||
|
||
## Directory Structure | ||
```shell | ||
. | ||
├── definitions // contains the X-Definition yaml/cue files. These file will be rendered as KubeVela Component in `template.yaml` | ||
├── metadata.yaml // addon metadata information. | ||
├── readme.md | ||
``` | ||
|
||
## Quick start | ||
### Install vela canary-rollout-istio addon | ||
```shell | ||
vela addon enable canary-rollout-istio | ||
``` | ||
For offline install please use | ||
```shell | ||
cd ~/experimental/addons | ||
vela addon enable canary-rollout-istio/ | ||
``` | ||
### Verify installs | ||
Check the deployment status of the application through `vela status <application name>:` | ||
```shell | ||
$ vela status addon-canary-rollout-istio -n vela-system | ||
About: | ||
|
||
Name: addon-canary-rollout-istio | ||
Namespace: vela-system | ||
Created at: 2022-12-26 15:34:28 +0800 CST | ||
Status: running | ||
|
||
Workflow: | ||
|
||
mode: DAG-DAG | ||
finished: true | ||
Suspend: false | ||
Terminated: false | ||
Steps | ||
- id: yisdqy3lx7 | ||
name: deploy-deploy-addon-to-all-clusters | ||
type: deploy | ||
phase: succeeded | ||
``` | ||
When we see that the `finished` field in Workflow is `true` and the Status is `running`, it means that the entire application is delivered successfully. | ||
|
||
If status shows as rendering or healthy as false, it means that the application has either failed to deploy or is still being deployed. Please proceed according to the information returned in `kubectl get application <application name> -o yaml`. | ||
|
||
You can also view WorkflowStepDefinition list by using the following command: | ||
```shell | ||
$ vela def list |& grep canary-roll | ||
canary-rollback WorkflowStepDefinition vela-system canary-rollout-istio | ||
canary-rollout WorkflowStepDefinition vela-system canary-rollout-istio | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters