About Verrazzano WebLogic Components and Application Configuration

Verrazzano supports application definition using Open Application Model (OAM). Verrazzano applications are composed of OAM components and OAM application configurations.

See Verrazzano.

A Verrazzano OAM Component is a Kubernetes Custom Resource that describes an application’s general composition and environment requirements. A Verrazzano application configuration is a Kubernetes Custom Resource which provides environment specific customizations.

A containerized WebLogic workload is modeled as a component.

An application configuration assembles a set of component instances, their traits, and the application scopes in which they are placed, combined with configuration parameters and metadata.

You can deploy one or more yaml files that has Verrazzano components and applications with the Verrazzano application generated by Oracle WebLogic Server for OKE.

Following is an example of the structure of a component:

apiVersion: core.oam.dev/v1alpha2
kind: Component
metadata:
 name: todo-domain
spec:
 workload:
   apiVersion: oam.verrazzano.io/v1alpha1
   kind: WebLogicWorkload
   metadata:
     name: todo-workload
     labels:
       app: todo
   spec:
     deploymentTemplate:
       metadata:
         name: todo-deployment
       podSpec:
         containers:
           - name: todo-container
             image: "myrepo/myuser/hello-world"
             ports:
               - containerPort: port-number
                 name: http

Following is an example of the structure of an application configuration:

apiVersion: core.oam.dev/v1alpha2
kind: ApplicationConfiguration
metadata:
  name: todo-appconf
  namespace: todo-list
  annotations:
    version: v1.0.0
    description: "ToDo List example application"
spec:
  components:
    - componentName: todo-domain
      traits:
        - trait:
            apiVersion: oam.verrazzano.io/v1alpha1
            kind: MetricsTrait
            spec:
              scraper: verrazzano-system/vmi-system-prometheus-0
        - trait:
            apiVersion: oam.verrazzano.io/v1alpha1
            kind: IngressTrait
            spec:
              rules:
                - paths:
                    - path: "/todo"
                      pathType: Prefix

To know more, see Application deployment in Verrazzano documentation.