|
| 1 | +# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. |
| 2 | +# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. |
| 3 | +# |
| 4 | +# This is an example of how to define a Domain resource. Please read through the comments which explain |
| 5 | +# what updates are needed. |
| 6 | +# |
| 7 | +apiVersion: "weblogic.oracle/v2" |
| 8 | +kind: Domain |
| 9 | +metadata: |
| 10 | + # Update this with the `domainUID` of your domain: |
| 11 | + name: sample-domain1 |
| 12 | + # Update this with the namespace your domain will run in: |
| 13 | + namespace: sample-domain1-ns |
| 14 | + labels: |
| 15 | + weblogic.resourceVersion: domain-v2 |
| 16 | + # Update this with the `domainUID` of your domain: |
| 17 | + weblogic.domainUID: sample-domain1 |
| 18 | + |
| 19 | +spec: |
| 20 | + # This parameter provides the location of the WebLogic Domain Home (from the container's point of view). |
| 21 | + # Note that this might be in the image itself or in a mounted volume or network storage. |
| 22 | + domainHome: /u01/oracle/user_projects/domains/sample-domain1 |
| 23 | + |
| 24 | + # If the domain home is inside the Docker image, set this to `true`, otherwise set `false`: |
| 25 | + domainHomeInImage: true |
| 26 | + |
| 27 | + # Update this with the name of the Docker image that will be used to run your domain: |
| 28 | + #image: "YOUR_OCI_REGION_CODE.ocir.io/YOUR_TENANCY_NAME/weblogic-operator-tutorial:latest" |
| 29 | + image: "iad.ocir.io/weblogick8s/weblogic-operator-tutorial-store:1.0" |
| 30 | + |
| 31 | + # imagePullPolicy defaults to "Always" if image version is :latest |
| 32 | + imagePullPolicy: "Always" |
| 33 | + |
| 34 | + # If credentials are needed to pull the image, uncomment this section and identify which |
| 35 | + # Secret contains the credentials for pulling an image: |
| 36 | + #imagePullSecrets: |
| 37 | + #- name: ocirsecret |
| 38 | + |
| 39 | + # Identify which Secret contains the WebLogic Admin credentials (note that there is an example of |
| 40 | + # how to create that Secret at the end of this file) |
| 41 | + webLogicCredentialsSecret: |
| 42 | + # Update this with the name of the secret containing your WebLogic server boot credentials: |
| 43 | + name: sample-domain1-weblogic-credentials |
| 44 | + |
| 45 | + # If you want to include the server out file into the pod's stdout, set this to `true`: |
| 46 | + includeServerOutInPodLog: true |
| 47 | + |
| 48 | + # If you want to use a mounted volume as the log home, i.e. to persist logs outside the container, then |
| 49 | + # uncomment this and set it to `true`: |
| 50 | + # logHomeEnabled: false |
| 51 | + # The in-pod name of the directory to store the domain, node manager, server logs, and server .out |
| 52 | + # files in. |
| 53 | + # If not specified or empty, domain log file, server logs, server out, and node manager log files |
| 54 | + # will be stored in the default logHome location of /shared/logs/<domainUID>/. |
| 55 | + # logHome: /shared/logs/domain1 |
| 56 | + |
| 57 | + # serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY" |
| 58 | + # This determines which WebLogic Servers the Operator will start up when it discovers this Domain |
| 59 | + # - "NEVER" will not start any server in the domain |
| 60 | + # - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started) |
| 61 | + # - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count |
| 62 | + serverStartPolicy: "IF_NEEDED" |
| 63 | +# restartVersion: "applicationV2" |
| 64 | + serverPod: |
| 65 | + # an (optional) list of environment variable to be set on the servers |
| 66 | + env: |
| 67 | + - name: JAVA_OPTIONS |
| 68 | + value: "-Dweblogic.StdoutDebugEnabled=false" |
| 69 | + - name: USER_MEM_ARGS |
| 70 | + value: "-Xms64m -Xmx256m " |
| 71 | +# nodeSelector: |
| 72 | +# node-for-weblogic: true |
| 73 | + |
| 74 | + # If you are storing your domain on a persistent volume (as opposed to inside the Docker image), |
| 75 | + # then uncomment this section and provide the PVC details and mount path here (standard images |
| 76 | + # from Oracle assume the mount path is `/shared`): |
| 77 | + # volumes: |
| 78 | + # - name: weblogic-domain-storage-volume |
| 79 | + # persistentVolumeClaim: |
| 80 | + # claimName: domain1-weblogic-sample-pvc |
| 81 | + # volumeMounts: |
| 82 | + # - mountPath: /shared |
| 83 | + # name: weblogic-domain-storage-volume |
| 84 | + |
| 85 | + # adminServer is used to configure the desired behavior for starting the administration server. |
| 86 | + adminServer: |
| 87 | + # serverStartState legal values are "RUNNING" or "ADMIN" |
| 88 | + # "RUNNING" means the listed server will be started up to "RUNNING" mode |
| 89 | + # "ADMIN" means the listed server will be start up to "ADMIN" mode |
| 90 | + serverStartState: "RUNNING" |
| 91 | + adminService: |
| 92 | + channels: |
| 93 | + # Update this to set the NodePort to use for the Admin Server's default channel (where the |
| 94 | + # admin console will be available): |
| 95 | + - channelName: default |
| 96 | + nodePort: 30701 |
| 97 | + # Uncomment to export the T3Channel as a service |
| 98 | + #- channelName: T3Channel |
| 99 | +# serverPod: |
| 100 | +# nodeSelector: |
| 101 | +# wlservers2: true |
| 102 | +# managedServers: |
| 103 | +# - serverName: managed-server1 |
| 104 | +# serverPod: |
| 105 | +# nodeSelector: |
| 106 | +# wlservers1: true |
| 107 | +# - serverName: managed-server2 |
| 108 | +# serverPod: |
| 109 | +# nodeSelector: |
| 110 | +# wlservers1: true |
| 111 | +# - serverName: managed-server3 |
| 112 | +# serverPod: |
| 113 | +# nodeSelector: |
| 114 | +# wlservers2: true |
| 115 | + # clusters is used to configure the desired behavior for starting member servers of a cluster. |
| 116 | + # If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters. |
| 117 | + clusters: |
| 118 | + - clusterName: cluster-1 |
| 119 | + serverStartState: "RUNNING" |
| 120 | + replicas: 2 |
| 121 | + # The number of managed servers to start for any unlisted clusters |
| 122 | + # replicas: 1 |
| 123 | + # |
| 124 | +# configOverrides: jdbccm |
| 125 | +# configOverrideSecrets: [dbsecret] |
0 commit comments