github.com/verrazzano/verrazzano@v1.7.1/tests/testdata/test-applications/weblogic/hello-weblogic/hello-wls-cluster-comp.yaml (about)

     1  # Copyright (c) 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: Component
     6  metadata:
     7    name: hello-domain
     8  spec:
     9    workload:
    10      apiVersion: oam.verrazzano.io/v1alpha1
    11      kind: VerrazzanoWebLogicWorkload
    12      spec:
    13        template:
    14          apiVersion: weblogic.oracle/v9
    15          metadata:
    16            name: hello-domain
    17          spec:
    18            adminServer:
    19              adminChannelPortForwardingEnabled: true
    20            domainUID: hellodomain
    21            domainHome: /u01/domains/hellodomain
    22            image: container-registry.oracle.com/middleware/weblogic:12.2.1.4
    23            imagePullSecrets:
    24              - name: hellodomain-repo-credentials
    25            domainHomeSourceType: "FromModel"
    26            includeServerOutInPodLog: true
    27            replicas: 1
    28            webLogicCredentialsSecret:
    29              name: hellodomain-weblogic-credentials
    30            clusters:
    31              - name: cluster-1
    32            configuration:
    33              introspectorJobActiveDeadlineSeconds: 900
    34              model:
    35                auxiliaryImages:
    36                  - image: ghcr.io/verrazzano/weblogic-app:1.0.0-1-20220319111617-b157b52a
    37                configMap: hellodomain-wdt-config-map
    38                domainType: WLS
    39                runtimeEncryptionSecret: hellodomain-runtime-encrypt-secret
    40            serverPod:
    41              livenessProbe:
    42                periodSeconds: 10
    43                timeoutSeconds: 65
    44                failureThreshold: 3
    45              readinessProbe:
    46                periodSeconds: 10
    47                timeoutSeconds: 50
    48                failureThreshold: 3
    49              labels:
    50                app: hello-domain
    51                version: v1
    52              env:
    53                - name: JAVA_OPTIONS
    54                  value: "-Dweblogic.StdoutDebugEnabled=false"
    55                - name: USER_MEM_ARGS
    56                  value: "-Djava.security.egd=file:/dev/./urandom -Xms64m -Xmx256m "
    57                - name: WL_HOME
    58                  value: /u01/oracle/wlserver
    59                - name: MW_HOME
    60                  value: /u01/oracle
    61        clusters:
    62          - apiVersion: weblogic.oracle/v1
    63            metadata:
    64              name: cluster-1
    65              labels:
    66                weblogic.resourceVersion: domain-v1
    67                weblogic.domainUID: hellodomain
    68            spec:
    69              clusterName: Cluster1
    70  ---
    71  apiVersion: core.oam.dev/v1alpha2
    72  kind: Component
    73  metadata:
    74    name: hellodomain-configmap
    75  spec:
    76    workload:
    77      apiVersion: v1
    78      kind: ConfigMap
    79      metadata:
    80        labels:
    81          weblogic.domainUID: hellodomain
    82        name: hellodomain-wdt-config-map
    83      data:
    84        wdt_cluster.yaml: |
    85          topology:
    86            Cluster:
    87              "Cluster1":
    88                DynamicServers:
    89                  ServerTemplate: "Cluster1Template"
    90                  ServerNamePrefix: "ManagedServer"
    91                  DynamicClusterSize: 5
    92                  MaxDynamicClusterSize: 5
    93                  CalculatedListenPorts: false
    94            ServerTemplate:
    95              "Cluster1Template":
    96                Cluster: "Cluster1"
    97                ListenPort: 8001
    98          appDeployments:
    99            Application:
   100              HelloApp:
   101                SourcePath: wlsdeploy/applications/hello.war
   102                ModuleType: war
   103                Target: 'Cluster1'