mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-16 06:16:52 +00:00
* add an overview for end user guide end user guide * add explore section * finish scale section * add expose section * remove trait already contains as built-in feature * try fix flaky test
32 lines
804 B
YAML
32 lines
804 B
YAML
# Code generated by KubeVela templates. DO NOT EDIT.
|
|
apiVersion: core.oam.dev/v1beta1
|
|
kind: TraitDefinition
|
|
metadata:
|
|
annotations:
|
|
definition.oam.dev/description: "Configures replicas for your service implemented by CRD controller."
|
|
name: crd-manul-scaler
|
|
spec:
|
|
appliesToWorkloads:
|
|
- webservice
|
|
- worker
|
|
definitionRef:
|
|
name: manualscalertraits.core.oam.dev
|
|
workloadRefPath: spec.workloadRef
|
|
podDisruptive: true
|
|
schematic:
|
|
cue:
|
|
template: |
|
|
outputs: scaler: {
|
|
apiVersion: "core.oam.dev/v1alpha2"
|
|
kind: "ManualScalerTrait"
|
|
spec: {
|
|
replicaCount: parameter.replicas
|
|
}
|
|
}
|
|
parameter: {
|
|
//+short=r
|
|
//+usage=Replicas of the workload
|
|
replicas: *1 | int
|
|
}
|
|
|