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