github.com/verrazzano/verrazzano@v1.7.1/examples/bobs-books/bobs-books-app.yaml (about)

     1  # Copyright (c) 2020, 2023, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  apiVersion: core.oam.dev/v1alpha2
     5  kind: ApplicationConfiguration
     6  metadata:
     7    name: bobs-books
     8    annotations:
     9      version: v1.0.0
    10      description: "Bob's Books"
    11  spec:
    12    components:
    13      - componentName: robert-helidon
    14        traits:
    15          - trait:
    16              apiVersion: core.oam.dev/v1alpha2
    17              kind: ManualScalerTrait
    18              spec:
    19                replicaCount: 2
    20          - trait:
    21              apiVersion: oam.verrazzano.io/v1alpha1
    22              kind: IngressTrait
    23              spec:
    24                rules:
    25                  - paths:
    26                      - path: "/"
    27                        pathType: Prefix
    28      - componentName: robert-coh
    29      - componentName: bobby-coh
    30      - componentName: bobby-helidon
    31      - componentName: bobby-wls
    32        traits:
    33          - trait:
    34              apiVersion: oam.verrazzano.io/v1alpha1
    35              kind: IngressTrait
    36              spec:
    37                rules:
    38                  - paths:
    39                      - path: "/bobbys-front-end"
    40                        pathType: Prefix
    41                    destination:
    42                      host: bobbys-front-end-cluster-cluster-1
    43                      port: 8001
    44      - componentName: bobs-orders-wls
    45        traits:
    46          - trait:
    47              apiVersion: oam.verrazzano.io/v1alpha1
    48              kind: IngressTrait
    49              spec:
    50                rules:
    51                  - paths:
    52                      - path: "/bobs-bookstore-order-manager/orders"
    53                        pathType: Prefix
    54                      - path: "/bobs-bookstore-order-manager/books"
    55                        pathType: Prefix
    56                    destination:
    57                      host: bobs-bookstore-cluster-cluster-1
    58                      port: 8001
    59      - componentName: bobs-orders-configmap
    60      - componentName: bobs-mysql-deployment
    61      - componentName: bobs-mysql-service
    62      - componentName: bobs-mysql-configmap