One-time Delivery (Coordinate with Multi-Controllers)
However, sometimes, you might want to use KubeVela Application to dispatch jobs and recycle jobs, but also want to leave those resources mutable after the workflow is finished. In this case, you can use the following apply-once policy. Some use cases:
- Working with HPA, which will change the deployment replicas.
- Working with Istio, which will change the deployment containers.
- Other controllers…
kind: Application
metadata:
name: apply-once-app
spec:
- name: hello-world
type: webservice
properties:
image: oamdev/hello-world
- type: scaler
properties:
replicas: 3
- name: apply-once
type: apply-once
properties:
enable: true
rules:
path: ["spec.replicas"]
selector:
In this case, only support changing the replicas field by other controllers, such as HPA. The selector rule support: componentNames
,componentTypes
,oamTypes
,resourceNames
,resourceTypes
and traitTypes
.