github.com/oam-dev/kubevela@v1.9.11/vela-templates/definitions/internal/trait/scaler.cue (about) 1 scaler: { 2 type: "trait" 3 annotations: {} 4 labels: {} 5 description: "Manually scale K8s pod for your workload which follows the pod spec in path 'spec.template'." 6 attributes: { 7 podDisruptive: false 8 appliesToWorkloads: ["deployments.apps", "statefulsets.apps"] 9 } 10 } 11 template: { 12 parameter: { 13 // +usage=Specify the number of workload 14 replicas: *1 | int 15 } 16 // +patchStrategy=retainKeys 17 patch: spec: replicas: parameter.replicas 18 }