mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-18 20:17:04 +00:00
Formated canaray rollout manifests and changed orders for some traits of a component to make it clear to see the difference between first-deploy.yaml and rollout-v2.yaml, between rollout-v2.yaml and rollback.yaml
87 lines
1.9 KiB
YAML
87 lines
1.9 KiB
YAML
apiVersion: core.oam.dev/v1beta1
|
|
kind: Application
|
|
metadata:
|
|
name: book-info
|
|
namespace: default
|
|
spec:
|
|
components:
|
|
- name: reviews
|
|
type: webservice
|
|
properties:
|
|
image: docker.io/istio/examples-bookinfo-reviews-v3:1.16.2
|
|
port: 9080
|
|
volumes:
|
|
- name: wlp-output
|
|
type: emptyDir
|
|
mountPath: /opt/ibm/wlp/output
|
|
- name: tmp
|
|
type: emptyDir
|
|
mountPath: /tmp
|
|
|
|
traits:
|
|
- type: canary-traffic
|
|
properties:
|
|
port:
|
|
- 9080
|
|
|
|
- type: rollout
|
|
properties:
|
|
targetSize: 2
|
|
# This means to rollout two more replicas in two batches.
|
|
rolloutBatches:
|
|
- replicas: 1
|
|
- replicas: 1
|
|
|
|
- name: productpage
|
|
type: webservice
|
|
properties:
|
|
image: docker.io/istio/examples-bookinfo-productpage-v1:1.16.2
|
|
port: 9080
|
|
|
|
traits:
|
|
- type: expose
|
|
properties:
|
|
port:
|
|
- 9080
|
|
|
|
- type: istio-gateway
|
|
properties:
|
|
hosts:
|
|
- "*"
|
|
gateway: ingressgateway
|
|
match:
|
|
- exact: /productpage
|
|
- prefix: /static
|
|
- exact: /login
|
|
- prefix: /api/v1/products
|
|
port: 9080
|
|
|
|
- name: ratings
|
|
type: webservice
|
|
properties:
|
|
image: docker.io/istio/examples-bookinfo-ratings-v1:1.16.2
|
|
port: 9080
|
|
|
|
traits:
|
|
- type: expose
|
|
properties:
|
|
port:
|
|
- 9080
|
|
|
|
- name: details
|
|
type: webservice
|
|
properties:
|
|
image: docker.io/istio/examples-bookinfo-details-v1:1.16.2
|
|
port: 9080
|
|
|
|
traits:
|
|
- type: expose
|
|
properties:
|
|
port:
|
|
- 9080
|
|
|
|
workflow:
|
|
steps:
|
|
- name: rollback
|
|
type: canary-rollback
|