About Verrazzano Traits
Traits customize Component workloads and generate related resources during deployment.
Verrazzano provides several Traits, for example IngressTrait and MetricsTrait.
The platform extracts Traits contained within an ApplicationConfiguration during deployment.
This processing is similar to the extraction of workload content from Component resources.
Note that for some Kubernetes resources, the
oam-kubernetes-runtime operator may need to be granted
A Kubernetes operator, for example
verrazzano-application-operator, processes these extracted Traits and may create additional related resources or may alter related workloads.
Each Trait implementation will behave differently.
The following sample shows an IngressTrait applied to a referenced Component.
- componentName: example-component
- path: "/greet"
Each Trait type optionally can have an associated TraitDefinition. This provides the platform with additional information about the Trait’s schema and workloads to which the Trait can be applied. A TraitDefintion is typically provided by the platform, not an end user.
The Verrazzano platform provides several Trait definitions and implementations:
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.