Attach Traits
All traits in the KubeVela system works well with the simple template based Component.
In this sample, we will attach two traits, scaler and virtualgroup to a component
#
VerifyDeploy the application and verify traits work.
Check the scaler
trait.
Check the virtualgroup
trait.
#
Update an ApplicationAfter the application is deployed and workloads/traits are created successfully, you can update the application, and corresponding changes will be applied to the workload.
Let's make several changes on the configuration of the sample application.
Apply the new configuration and check the results after several seconds.
After updating, the workload instance name will be updated from
mycomp-v1
tomycomp-v2
.
Check the new property value.
Check the scaler
trait.
Check the virtualgroup
trait.