github.com/verrazzano/verrazzano@v1.7.1/tests/testdata/loggingtrait/helidonworkload/helidon-logging-application.yaml (about)

     1  # Copyright (c) 2020, 2022, 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: hello-helidon
     8    annotations:
     9      version: v1.0.0
    10      description: "Hello Helidon application"
    11  spec:
    12    components:
    13      - componentName: hello-helidon-component
    14        traits:
    15          - trait:
    16              apiVersion: oam.verrazzano.io/v1alpha1
    17              kind: MetricsTrait
    18              spec:
    19                scraper: verrazzano-system/vmi-system-prometheus-0
    20          - trait:
    21              apiVersion: oam.verrazzano.io/v1alpha1
    22              kind: IngressTrait
    23              metadata:
    24                name: hello-helidon-ingress
    25              spec:
    26                rules:
    27                  - paths:
    28                      - path: "/greet"
    29                        pathType: Prefix
    30          - trait:
    31              apiVersion: oam.verrazzano.io/v1alpha1
    32              kind: LoggingTrait
    33              metadata:
    34                name: logging-trait
    35              spec:
    36                loggingImage: ghcr.io/verrazzano/fluentd-kubernetes-daemonset:v1.12.3-20210517195222-f345ec2
    37                loggingConfig: |
    38                    <match fluent.**>
    39                      @type null
    40                    </match>
    41                    <match **>
    42                    @type stdout
    43                    </match>