fix deployment example (#1797)

This commit is contained in:
wyike
2021-06-15 16:27:39 +08:00
committed by GitHub
parent e5c8f259f3
commit 72bdb04f94
3 changed files with 23 additions and 5 deletions

View File

@@ -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`

View File

@@ -5,6 +5,7 @@ metadata:
spec:
# application (revision) reference
targetAppRevisionName: test-rolling-v2
sourceAppRevisionName: test-rolling-v1
# HPA reference (optional)
componentList:
- metrics-provider

View 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