github.com/verrazzano/verrazzano@v1.7.0/application-operator/mcagent/testdata/multicluster-component.yaml (about)

     1  # Copyright (c) 2021, 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: clusters.verrazzano.io/v1alpha1
     5  kind: MultiClusterComponent
     6  metadata:
     7    name: unit-mccomp
     8    namespace: unit-mccomp-namespace
     9    labels:
    10      label1: test1
    11      verrazzano-managed: "true"
    12  spec:
    13    template:
    14      spec:
    15        workload:
    16          apiVersion: core.oam.dev/v1alpha2
    17          kind: ContainerizedWorkload
    18          metadata:
    19            name: hello-workload
    20            namespace: default
    21            labels:
    22              app: hello-helidon
    23          spec:
    24            containers:
    25              - name: hello
    26                image: ghcr.io/oracle/oraclelinux:7-slim
    27                args:
    28                  - /bin/sh
    29                  - -c
    30                  - echo 'sleeping'; sleep 50000;
    31                ports:
    32                  - containerPort: 8080
    33                    name: http
    34    placement:
    35      clusters:
    36        - name: managed1