A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content
Version: v1.10

kruise-rollout

Kruise Rollout addon provides canary release capabilities for Kubernetes Deployment, Statefulset and OpenKruise CloneSet. For more details, please refer to: Kruise Rollout.

Installation​

vela addon enable kruise-rollout

Uninstallation​

vela addon disable kruise-rollout

Usage​

Kurise rollout addon help to canary rollout your workload no matter defined with webservice or contained in a helm.

If your workload is in a helm chart please refer to doc for more usage info, otherwise please refer to usage of webservice component.

Properties​

NameDescriptionTypeRequiredDefault
canaryThe rollout steps and traffic routing. See canary.objecttrue
autoRelease every step without pausing between them.boolfalsefalse
releaseModecanary (an extra canary Deployment) or batch (updates the Deployment in place, in batches).stringfalsecanary
workloadTypeThe workload to roll out, when it can't be detected. See workloadType.objectfalse
stepPartitionRun steps 1 to stepPartition without pausing, then pause as usual. When set, duration is ignored.intfalse

canary​

NameDescriptionTypeRequiredDefault
stepsThe rollout, as a list of steps. See steps.[]objecttrue
trafficRoutingsThe Service and Ingress or Gateway route that split traffic. See trafficRoutings.[]objectfalse

steps​

NameDescriptionTypeRequiredDefault
weightPercentage of traffic sent to the new version at this step, for example 20.intfalse
replicasPods on the new version at this step, as a number (5) or a percentage ("20%").int or stringfalse
durationSeconds to wait before the next step. Without it, the rollout pauses until you resume it.intfalse
matchesHeader rules that send matching requests to the new version. Each entry has headers, a list of {Type, Name, Value} where Type is Exact (default) or RegularExpression.[]objectfalse

trafficRoutings​

NameDescriptionTypeRequiredDefault
typeThe traffic route: ingress, gateway or aliyun-alb.stringfalseingress
serviceService that selects the stable Pods.stringfalsethe component name
ingressNameIngress to split traffic on, when type is ingress.stringfalsethe component name
gatewayHTTPRouteNameGateway API HTTPRoute to split traffic on, when type is gateway.stringfalse
gracePeriodSecondsSeconds to wait after changing the route.intfalse5

workloadType​

NameDescriptionTypeRequiredDefault
apiVersionThe workload's apiVersion.stringtrue
kindThe workload's kind.stringtrue

Example​

cat <<EOF | vela up -f -
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: canary-demo
annotations:
app.oam.dev/publishVersion: v1
spec:
components:
- name: canary-demo
type: webservice
properties:
image: barnett/canarydemo:v1
ports:
- port: 8090
traits:
- type: scaler
properties:
replicas: 5
- type: gateway
properties:
domain: canary-demo.com
http:
"/version": 8090
- type: kruise-rollout
properties:
canary:
steps:
# The first batch of Canary releases 20% Pods, and 20% traffic imported to the new version, require manual confirmation before subsequent releases are completed
- weight: 20
# The second batch of Canary releases 90% Pods, and 90% traffic imported to the new version.
- weight: 90
trafficRoutings:
- type: ingress
EOF