mirror of
https://github.com/kubevela/kubevela.git
synced 2026-04-22 10:37:04 +00:00
fix deployment example (#1797)
This commit is contained in:
@@ -17,17 +17,20 @@ kubectl apply -f docs/examples/deployment-rollout/app-source.yaml
|
||||
```shell
|
||||
kubectl apply -f docs/examples/deployment-rollout/app-target.yaml
|
||||
```
|
||||
|
||||
4. Apply the application deployment with pause
|
||||
4. Apply scale appRollout
|
||||
```shell
|
||||
kubectl apply -f docs/examples/deployment-rollout/app-rollout-scale.yaml
|
||||
```
|
||||
5. Apply the application deployment with pause
|
||||
```shell
|
||||
kubectl apply -f docs/examples/deployment-rollout/app-rollout-pause.yaml
|
||||
```
|
||||
Check the status of the ApplicationRollout and see the step by step rolling out.
|
||||
This rollout will pause after the second batch.
|
||||
|
||||
7. Apply the application deployment that completes the rollout
|
||||
6. Apply the application deployment that completes the rollout
|
||||
```shell
|
||||
kubectl apply -f docs/examples/deployment-rollout/app-rollout-finish.yaml
|
||||
```
|
||||
Check the status of the ApplicationRollout and see the rollout completes, and the
|
||||
ApplicationRollout's "Rolling State" becomes `rolloutSucceed`
|
||||
Check the status of the AppRollout and see the rollout completes, and the
|
||||
AppRollout's "Rolling State" becomes `rolloutSucceed`
|
||||
@@ -5,6 +5,7 @@ metadata:
|
||||
spec:
|
||||
# application (revision) reference
|
||||
targetAppRevisionName: test-rolling-v2
|
||||
sourceAppRevisionName: test-rolling-v1
|
||||
# HPA reference (optional)
|
||||
componentList:
|
||||
- metrics-provider
|
||||
|
||||
14
docs/examples/deployment-rollout/app-rollout-scale.yaml
Normal file
14
docs/examples/deployment-rollout/app-rollout-scale.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: AppRollout
|
||||
metadata:
|
||||
name: rolling-test
|
||||
spec:
|
||||
# application (revision) reference
|
||||
targetAppRevisionName: test-rolling-v1
|
||||
componentList:
|
||||
- metrics-provider
|
||||
rolloutPlan:
|
||||
rolloutStrategy: "IncreaseFirst"
|
||||
rolloutBatches:
|
||||
- replicas: 4
|
||||
targetSize: 5
|
||||
Reference in New Issue
Block a user